Bing's Geolocation Maps API - postal codes in Mexico - geolocation

I am having issues finding any geolocation data on Mexico using bing's services. Example:
http://dev.virtualearth.net/REST/v1/Locations?countryRegion=MX&postalCode=66250&maxResults=1&key={my key}
Just gives me a central point for Mexico... In fact, I have tried 15-20 postal codes, not one has any specific location data for that postal code.
Am I doing something wrong? Thanks!

Bing Maps does not support postal codes in Mexico.

Related

Get Exact latitude,longitude against an address

I am using goole geocoding api to fetch latitude and longitude of a particular address, for some cases it gives me closest to my desired location while some time the position returned by google is many meters away from my given address.My main concern here to ask is, is google the best geocoding provider of there are any third party solutions provide accurate latitude, longitude?
My google API format is something like this
https://maps.googleapis.com/maps/api/geocode/json?address=[My address, street 123, house 123]&key=[GOOGLE_API_KEY]
Please help out, Thanks :)

get country and city information from wikimapia Api

I need to know in which country (and hopefully some more info, like city or area or state and it would be great if I could get whether this is on land or sea) a coordinates set lies in.
I have tried the wikimapia api but it is extremely difficult to get around to it.
for example I have this call
http://api.wikimapia.org/?function=box&key=example&bbox=23.72251,37.96918,23.73094,37.9731&format=json
which brings some information about an area in Athens, Greece.
The problem is that not only this api call is depreciated, but when i try to get the country by adding &category=2977
http://api.wikimapia.org/?function=box&key=example&bbox=23.72251,37.96918,23.73094,37.9731&format=json&category=1176
this doesnt work(the category id i got it from this gist)
I would guess that this might have something to do with the method being depreciated, but when I change to the new method place.getbyarea it is not working at all.
http://api.wikimapia.org/?function=place.getbyarea&key=example&bbox=23.72251,37.96918,23.73094,37.9731&format=json
Any ideas? thanks in advance
Why do you want specifically the API of Wikimapia to get your information? To recover the city and country from GPS coordinates, some others API’s are much more appropriate I think, here some examples:
Google Maps (used here in a webpage)
Here Maps
Bing Maps
Apple Maps (Mapkit.js)
Algolia Places
OpenStreetMap Nominatim

GMSReverseGeocodeResponse returns all results with missing addresses

For the last 48 hours, the GMSReverseGeocoder on Google maps iOS SDK (latest version 2.7) returns results with missing addresses in areas with latitude and longitude that used to work properly. One example is:
GMSAddress {
coordinate: (37.915000, 23.730000)
lines: Alimos, Greece
subLocality: Alimos
locality: South Athens
administrativeArea: Decentralized Administration of Attica
country: Greece
}
Lines should contain the whole address but now it contains only the sublocality and the country. The issue is that it works properly for a couple of hours and then it returns to these kind of results and it never returns an error so I can use a fallback mechanism for reverse geocoding. (The results of this can be seen in popular apps like Lyft that rely on Google Maps iOS SDK for reverse geocoding).
Has anyone found a solution on how to overcome this? There is no api change in the geocoder in the latest updates.
PS. For the same lat/long, Google Maps Web Api and Android Api return fine results.

How to get country name by using longitude and latitude?

I am working with a project, and so far it is possible to get longitude and latitude by using the phones GPS, and saving the values in variables.
I would like to get the names of all countries with help of longitude and latitude, and I have read about "Geocode" and "Geolocation", but I dont know how to implement this in my code.
Someone who can help me solve this problem?
What you are looking for is a "reverse geocoding" solution, which takes lat/lon coordinates and gives you back postal address including country. Reverse geocoding API is offered by all the usual providers -- Google, Bing, Yahoo, etc.

Getting Country, State, City, PostalCode from GPS coods

I am using ipinfodb.com to get geolocation info for IPs, but it only gives postal codes for US addresses.
I am also getting GPS coods from mobile devices, but I need to get more useful information from these GPS coods, that is the country, state, city and postalcode of that GPS coods.
Two questions, 1) is there a more comprehensive database than ipinfodb.com that will get postal codes for IPs outside of the US? 2) is there a way to get address information from GPS coods (including places outside the US).
MaxMind offers a free version of their GeoCity database.
http://www.maxmind.com/app/geolitecity
Also, there is an open source, free-to-use web service at:
http://hostip.info
Both should provide comprehensive location data.
Google does reverse Geocoding but IIRC, according to the Terms and Conditions, the results are to be used only in a Google Map.

Resources