Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const stationurl = 'https://ptx.transportdata.tw/MOTC/v2/Bike/Station/Tainan?$format=JSON';
- const amounturl = 'https://ptx.transportdata.tw/MOTC/v2/Bike/Availability/Tainan?$format=JSON';
- const amountdata=fetch(amounturl)
- .then(res => res.json())
- .catch(err => console.log('error'));
- const stationinfo=fetch(stationurl)
- .then(res => res.json())
- .catch(err =>console.log('error'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement