ActoCode Not Available on OpenStreetMap
robertwigley opened this issue · 3 comments
robertwigley commented
Thanks for this integration. This not a bug, but a question about usage that is not answered in the documentation. How do you obtain the ActoCode if it is not present on OpenStreetMap? Is there an alternative method that can be used?
There are some bus stops missing on OpenStreetMap, at least in the Glasgow area and some do not have any ActoCodes assigned to them. e.g. https://www.openstreetmap.org/node/4619156282
BottlecapDave commented
Hello.
The only other way I can think is to go to
- Navigate to https://www.firstbus.co.uk/next-bus and type your location
- Open up the development tools on your browser (usually F12) and go to the network tab
- Click on the stop that your after and look at the network request. This should make a request to
https://www.firstbus.co.uk/api/get-next-bus?stop=XXX
. The value you're after will be in the response and also the value ofXXX
.
robertwigley commented
Brilliant and perfect. That worked a treat. Thank you so much. It might be worth adding this to the documentation as I'm sure there must be other stops missing on OpenStreetMap.
BottlecapDave commented
Glad this worked, and I'll update the instructions.