Road Type in Google Maps API - swift

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.

Related

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.

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

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.

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=

Draw route in Apple map in ios 6

I want to draw a route between two places. I have the GPS value of those places. I can get the GPS route values between those places from the google api http://maps.google.com/maps?output=dragdir&saddr=&daddr=.
I want to know that will google reject my app. Because I found that "the Directions API may only be used in conjunction with displaying results on a Google map; using Directions data without displaying a map for which directions data was requested is prohibited. Additionally, calculation of directions generates copyrights and warnings which must be displayed to the user in some fashion. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions"
Ple give me clarification on this.
You may not use the Google Maps API unless you use it with a Google Map. To use the direction data you would have to use a UIWebView with a javascript based Google Map.

Extract map information from Bing Maps

I would like to write a navigation software for windows phone 7 that is available without being on the internet. Therefore, I would like to download the map information from Bing maps. Not the entire world or country, just a small city - because this software is just for me and I only need navigation within my home town.
What I basically need is something similar to the map export that OpenStreetMap offers. I could not find anything equivalent on bing maps, so I wrote a program that queries bing maps (through the API) for routes. It then saves intersections and thus builds a graph. This technically works and I get a lot of streets, but sometimes bing leaves out a single intersection. In that case, my data will become invalid.
So I was wondering if there is any way of asking the API directly for a map export, returning something like an array of streets that is within a certain boundary rectangle. (Or something similar)
Thanks for your help
No, there is no standard API call in Bing Maps API that will let you do this.
Downloading all the street data within "a small city" would violate the terms of service. See 8.2(r) at http://www.microsoft.com/maps/product/terms.html.
If you want that data, you can try OpenStreetMap or else you would probably have to license the data from a commercial provider of such things which is no doubt very expensive.