cURL
curl --request GET \ --url https://api.businfo.pt/publicapi/v1/bus/nearby \ --header 'X-Api-Key: <api-key>'
[ { "bus": { "id": "<string>", "name": "<string>", "latitude": "<string>", "longitude": "<string>" }, "distance": 123 } ]
Find nearby buses based on latitude and longitude
API key required to access the endpoints
User's latitude
User's longitude
Success
The response is of type object[].
object[]