For an application I’m developing, I need to find the nearest bus stops using the Google Maps API. How would I accomplish this?
The place search API just returns REQUEST_DENIED, so that isn’t much help.
https://maps.googleapis.com/maps/api/place/search/json?key=AIzaSyCNutXaoPSvdgAboAp7CYLZ2S5oVv_Fe7o&location=52.069858,4.291111&radius=1000&sensor=false
I suspect that
REQUEST_DENIEDgives you a clue that your query is well-formed, but there is something invalid. If it’s not the lack of thesensorparameter, it must be the key you provided. I don’t have a key myself to test it, and Google refuses to give it saying the URL I provided is invalid… I can only suggest you to double-check your key, and maybe try with another account.EDIT: Now I’ve managed to get my key and found your mistake: you forgot to put
https, nothttp, in your request.