Find all places from a boundingBox
How could I find all places from a particular boundingBox ?
You provide:
findPlaces - it requires a searchTerm, but I want all places no matter the searchTerm
findPlacesByCategory - it requires a category
findRecommendations - I just want all places from a location, not only recommendations
I know I could just use findPlacesByCategory for all available categories, but that would be a waste of bandwidth and API requests.
Re: Find all places from a boundingBox
Hi there, sdfanq!
I am chekind this right now from the team who is dealing with this API.
Actually I think that an enterprise feature , but you can do it by hand by taking the results back that you get from your search center and then filter them using BoundingBox.intersects().
Best Regards,
Marko
Re: Find all places from a boundingBox
Thank you. That's what I thought too (this being an enterprise feature). I will do as you say and filter the results.
Re: Find all places from a boundingBox
One more thing please, your answer infers that I must still use findPlacesByCategory for each category and then filter by boundingBox, right ?
Because the best thing for me would be to get all places from a searchCenter and filter by boundingBox, like using findPlaces, but like I said, findPlaces [B]requires[/B] a search term.
Best regards,
Stefan
Re: Find all places from a boundingBox
Hi there, Stefan
Sorry for the delay and any inconvenience. I am in communication with the API team and I will provide you an answer, please expect it in 24H.
Best Regards,
Marko
Re: Find all places from a boundingBox
nokia.places search supports either search-term or category-based search. If using a search-term is not an option then findPlacesByCategory is a definite choice. findPlacesByCategory function does not offer any wildcards/shorthands for "all categories" but it is possible to specify a comma-separated list of categories, something like:
category:"eat-drink,natural-geographical,<any-other-interesting-categories>"
All available categories are listed in [URL="http://api.maps.nokia.com/en/apireference/2.2.0/symbols/nokia.places.search.manager.html#.findPlacesByCategory"]findPlacesByCategory documentation[/URL]
This way there would be only one request covering all the categories.