'OSMDroid Points of interest using multiple facilities
I am using OSMDroid with its bonus pack to display a map and get point of interest near a location, but I can't find a way to get POI of different type in once.
As indicated in the documentation I am using the function getPOICloseTo() but it doesn't seem to handle a null facility to return all types of POI.
val poiProvider = NominatimPOIProvider("OSMBonusPackTutoUserAgent")
val pois = poiProvider.getPOICloseTo( GeoPoint( geoPoint ), "cinema", 10, 0.1 )
If there is a way to avoid making one call per POI type I would like to know it !
Thanks in advance, have a nice day
Solution 1:[1]
I don't think you can do that with Nominatim service. You can dig in Nominatim API doc (having a look at Special Phrases).
Alternative: move to OverpassAPIProvider. A little bit complex, but super-powerful. I'm quite sure it will match your need.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | MKer |