TP_geeks
asked on
Google Maps API - searching for places
Hello,
Say for example, I'd like to retrieve all museums in London, how would I structure my request?
I could do something like this, but it wouldn't cover London in it's entirety, because there is no radius setting that covers London as a whole.
https://maps.googleapis.com/maps/api/place/radarsearch/json?location=51.503186,-0.126446&radius=5000&types=museum&key=apikeyhere
Many Thanks,
Tom
Say for example, I'd like to retrieve all museums in London, how would I structure my request?
I could do something like this, but it wouldn't cover London in it's entirety, because there is no radius setting that covers London as a whole.
https://maps.googleapis.com/maps/api/place/radarsearch/json?location=51.503186,-0.126446&radius=5000&types=museum&key=apikeyhere
Many Thanks,
Tom
ASKER
Hello,
I'm aware of the radius parameter.
But I would want to return all museums in London - how would you do that?!
Radius wont work in this instance, as there is no radius settings to cover the whole of London, without including other places outside.
I'm aware of the radius parameter.
But I would want to return all museums in London - how would you do that?!
Radius wont work in this instance, as there is no radius settings to cover the whole of London, without including other places outside.
In the same above URL, there is type specified.
types — Restricts the results to places matching at least one of the specified types. Types should be separated with a pipe symbol (type1|type2|etc). See the list of supported types.
types — Restricts the results to places matching at least one of the specified types. Types should be separated with a pipe symbol (type1|type2|etc). See the list of supported types.
ASKER
Hello,
The problem isn't with the type, the problem is with the location.
I want to search the whole of London. There is no radius parameter that will search the whole of London....!
The problem isn't with the type, the problem is with the location.
I want to search the whole of London. There is no radius parameter that will search the whole of London....!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It provides radius parameter for a place.
https://developers.google.com/places/web-service/search