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

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).

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.

Mapbox Geocoding custom address

I would like to add custom addresses to Mapbox Geocoding search bar,
but I could not find any examples in Mapbox's official tutorials for that.
I use my original codes (e.g. #abc1234) to point a corresponding coordinate (longitude, latitude) in my project. The coordinates are calculated from the codes systematically and the number of codes is enormous, so, to be exact I want to install an algorithm (not addresses) to Mapbox Geocoding, enter a code in search bar and get a corresponding address.
Is there a way to do that?

How to get latitude and longitude of a city?

I am designing a project in which I have used two text fields. One is for source address and another one is for destination address.
Now, I want to get latitude and longitude of both addresses and then draw it on map view.
How can I accomplish that?
check this post for geocoding
http://fredandrandall.com/blog/2011/03/23/geocoding-on-the-iphone-getting-the-latitude-and-longitude-of-an-address/
How do I do geocoding (NOT reverse geocoding) on iPhone?
Do check out SVGeocoder. It's able to perform both forward and reverse gecoding via Google API. Not to mention it's also very easy to use.

Location services(iPhone) other than Google

In our iPhone application we have a requirement to display UK County and Area name of a location ( we have latitude and longitude) . Initially we used MAPKit framework (reverse geocoding) to get this information. But during testing we found that we are not getting correct data from Google always.
Can somebody suggest any alternative method to get this information ? We are ready to use paid services also.
You can take a look at CloudMade. They have pretty decent solutions for anything map service related. They use source from OpenStreetMap but you can do all sorts of customization to the maps. Another option is through Bing maps. It looks neat but I haven't tried it myself.

iPhone development - Locate address from user's position

Is it possible to get the street/area where the user currently is by using the CoreLocation framework? So if I get the user's longitude and latitude position, can I get the address (xx street, yy city, z state) from that position?
Thanks.
Someone had already posted the question before. Just found out Get street address at lat/long pair
What you would need is a reverse geocoding service, that will translate a lat/lon coordinate set in to an address. I doubt that this, or access to one, is included in CoreLocation.
You could look into a third-party provider such as Google Maps:
http://nicogoeminne.googlepages.com/documentation.html
There are also other work-arounds that might get you close. For example by using Multimap's routing API as described in the following:
http://forums.multimap.com/viewtopic.php?f=1&t=51
Agreed - you need a reverse geocoding service - this is not included in Core Location. There is a fairly complete list of reverse geocoders here link text