Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
i want a function that could identify the city by giving the coordinates of the photo
by giving the lattitude and longitude of the photo i could get the city where these photo is taken
Posted
Updated 20-Dec-13 3:05am
v2
Comments
chandanadhikari 20-Dec-13 8:49am    
i am not sure but maybe if you use google maps or nokia here maps , it would help because these maps would have some APIs exposed to serve your purpose(some API that could tell you the place name if co-ordinates are entered)....try googling them
SHUSSIEN 20-Dec-13 8:54am    
yes i know that i don't need all API but i want the function in C++ or C# that can my project to connect to google map

1 solution

You want to know the city, given a set of latitude/longitude coordinates.

This is called reverse geocoding.

This is usually accomplished by using a web service. Many providers offer this for free, although usually with some limitations.

The Google Geocoding API[^]

MapQuest Geocoding API[^]

MapQuest Open Geocoding API[^]

Yahoo BOSS Geoservices[^]

Bing Maps REST Services[^]

7 free Geocoding APIs[^]

Many of these offer .NET APIs, and if they don't there are usually 3rd-party APIs, including some on this website.

Performing this task offline is generally not done, however you can purchase databases that will facilitate doing so.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900