Using the ( REST and Spatial Data Services ) inputs a location and distance from that location to search in India & other countries - bing

I am working on an application which includes bing map with following functionality
User inputs a location and distance from that location to search.
Bing Maps REST Services Locations API is used to geocode the location.
Bing Spatial Data Services Query API is used to search for points of interest near the location.
The POI information is displayed and pushpins are added to the map.
for this I used following code http://msdn.microsoft.com/en-us/library/hh757509.aspx in my application which is working fine for North America because NAVTEQNA data source contains information about points of interest (POIs) in North America.
Now if i replace NAVTEQNA with FourthCoffeeSample which is provided http://msdn.microsoft.com/en-us/library/gg585133.aspx . this is also working fine for same area but not working for India & other countries including US also except of North America.
Note
If I am entering any address of any country the address is Geocoding using the REST Services, but it is not searching for points of interest (POI) using Spatial data Services. Searching for points of interest (POI) using Spatial data Services is working fine for North America.
Please suggest me how it will work for India & other countries.

NAVTEQNA is a data source with only data in North America. NAVTEQEU has data for Europe. There is no data source in the Bing Spatial Data Services with POI for India. You can use the old Bing Maps SOAP Search Service which has NAVTEQ + other POI data and may include India. Also the Search Manager in the Bing Maps controls also has this same data.

Related

Sort by distance in Nominatim API

I have developed a flutter application which uses Nominatim API for searching on a map in OpenStreetMap. I have successfully implemented the search however I want the search to prioritise locations near the location that the user is currently viewing.
For Example: If the user is hovering over California, and searches for Hospitals, it should give results on hospitals near me. Currently, it gives locations that are in some other country based on their own importance settings.
Could anybody help me how to do that?
EDIT: I want the results to be "sorted by distance" and not "limit search to nearby locations".

POI not found with geocoding API

I am trying to use the MapBox Geocoding API and for it I tried to translate "Centre Hospitalier Régional d'Orléans" (that is an Hospital in France, Orléans) into Lng/Lat coordinates.
When I display a MapBox Map, I can see the POI:
And when I click it in MapBox Studio, it is well recognized as a Point Of Interest (POI) (poi-label):
But when I try to find it using the Geocoding API, I don't find it.
Here is the request I run:
https://api.mapbox.com/geocoding/v5/mapbox.places/Centre%20Hospitalier.json?access_token=pk.eyJ1IjoibWF0dGZpY2tlIiwiYSI6ImNqNnM2YmFoNzAwcTMzM214NTB1NHdwbnoifQ.Or19S7KmYPHW8YjRz82v6g&cachebuster=1547469044480&autocomplete=true&country=fr&proximity=1.909251%2C47.902964
Is it normal ? Am I doing something wrong or is it a bug ?
The data behind the maps and the geocoder aren't necessarily the same, so it's likely this Hospital is showing up on the map from OpenStreetMap, but isn't in the data being used for the geocoder.
Some information about data sources is at https://www.mapbox.com/about/maps/
You can report feedback about this at https://apps.mapbox.com/feedback/ mentioning its a geocoding issue.

Use OpenStreetMap to get the country name for a given set of GPS coordinates

Does anybody know if there is a way to use OpenStreetMap (offline or API) to get the country name for a given set of GPS coordinates?
I'm not interested in using the Google or Geonames API mentioned here: Country name for GPS coordinates
Take a look at Nominatim or one of the other OSM-based search engines (geocoders).

Road Type in Google Maps API

I am new to Google Maps API.
In my Swift iOS app, I have current location coordinates. While reverse geocoding, how do I get the road type (highway, primary, secondary etc.)?
You would want to use Road API for that.
Roads API identifies the roads a vehicle was traveling along and provides additional metadata about those roads, such as speed limits.

Getting 'Mountain' and other geographic entity types from Bing APIs

I've been trying to figure out how I can get 'Mountain' and other geographic entity types from the Bing Maps REST Location API. Using the "Find a location by Point" returns very little information.
Perhaps using the Bing Maps REST API isn't the best place for the kind of information I'm looking for, basically natural geographic features like mountains, lakes, etc. Any recommendations?
'Tanks.
Those types of feature (mountain, hill...) are not available inside the Bing Maps platform wether in the REST service or the Public Data Source from the Spatial Data Service (see the available categories: http://msdn.microsoft.com/en-us/library/hh478191.aspx)
In order to do so, depending on your needs, you can rely on OSM data or geonames information to retrieve information about places and known mountains/lake, see: http://www.geonames.org/search.html?q=mont+blanc&country=