chore: bump version to v0.3.0
This commit is contained in:
parent
58f3a45206
commit
0d4f528eef
|
@ -8,6 +8,7 @@ export default function StationProfile() {
|
|||
// Get the userId param from the URL.
|
||||
const { uic } = useParams();
|
||||
|
||||
const [sttnRry, setSttnRry] = useState([]);
|
||||
const [bsRry, setBsRry] = useState([]);
|
||||
const [bpRry, setBpRry] = useState([]);
|
||||
const [prRry, setPrRry] = useState([]);
|
||||
|
@ -19,13 +20,14 @@ export default function StationProfile() {
|
|||
|
||||
//console.log('StationProfile:useEffect() uic: ' + uic);
|
||||
|
||||
/*
|
||||
const uicSttn = 8000050;
|
||||
console.log('StationProfile:useEffect() uicSttn: ' + uicSttn);
|
||||
const address = 'https://overpass-api.de/api/interpreter?data=[out:json][timeout:60];node[uic_ref=' + uicSttn + '];';
|
||||
*/
|
||||
const address = 'https://overpass-api.de/api/interpreter?data=[out:json][timeout:60];node[uic_ref=' + uic + '];';
|
||||
//console.log('StationProfile:useEffect() address: ' + address);
|
||||
//console.log('StationProfile:useEffect() address: ' + address);/
|
||||
|
||||
//get station
|
||||
get(address + 'node[public_transport=station][railway=station](around:2);out body center qt;')
|
||||
.then(data => {
|
||||
setSttnRry((sttnRry) => data.elements);
|
||||
});
|
||||
|
||||
//get bus stop
|
||||
get(address + 'nwr[highway=bus_stop](around:200);out body center qt;')
|
||||
|
@ -67,14 +69,34 @@ export default function StationProfile() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<p>Departures Board (
|
||||
<a href={'https://fahrplaner.vbn.de/mct/views/monitor/index.html?cfgFile=a21hTCkgcxEVQKqFv77q_1637321028345&station=' + uic + '&productOrder=%5b%5d'} target="_blank" rel="noopener noreferrer">
|
||||
Fahrplaner
|
||||
</a>
|
||||
)
|
||||
</p>
|
||||
{sttnRry.length > 0 ? <h1>{sttnRry[0].tags.official_name}</h1> : null}
|
||||
{sttnRry.length > 0 ? <><p>Links</p><ul>
|
||||
<li key='osm'>
|
||||
<a href={'https://www.openstreetmap.org/node/' + sttnRry[0].id} target="_blank" rel="noopener noreferrer">
|
||||
OSM
|
||||
</a>
|
||||
</li>
|
||||
<li key='wikidata'>
|
||||
<a href={'https://www.wikidata.org/wiki/' + sttnRry[0].tags.wikidata} target="_blank" rel="noopener noreferrer">
|
||||
Wikidata
|
||||
</a>
|
||||
</li>
|
||||
<li key='wikipedia'>
|
||||
<a href={'https://de.wikipedia.org/wiki/' + sttnRry[0].tags.wikipedia} target="_blank" rel="noopener noreferrer">
|
||||
Wikipedia
|
||||
</a>
|
||||
</li>
|
||||
</ul></> : null}
|
||||
<p>Departures Board</p>
|
||||
<ul>
|
||||
<li key='fahrplaner'>
|
||||
<a href={'https://fahrplaner.vbn.de/mct/views/monitor/index.html?cfgFile=a21hTCkgcxEVQKqFv77q_1637321028345&station=' + uic + '&productOrder=%5b%5d'} target="_blank" rel="noopener noreferrer">
|
||||
Fahrplaner
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Station Plan (
|
||||
<a href='https://daten.zvbn.de/ssb/locale/en_GB/legend_en_GB.pdf' rel="noopener noreferrer">
|
||||
<a href='https://daten.zvbn.de/ssb/locale/en_GB/legend_en_GB.pdf' target="_blank" rel="noopener noreferrer">
|
||||
Key
|
||||
</a>
|
||||
)<br/>
|
||||
|
|
Loading…
Reference in New Issue