views:

71

answers:

3

I am starting my first Open Source ASP.NET project in C#. Data that Web app is going to show is in close relation with geographic coordinates of towns.

Now I want to implement user interface where user of web app can choose a desired town and submit form, and behind scene i want to get coordinates of chosen town, so I can make calculations.

Now I wondering is there some free services or library, which can I implement to get wanted results?

Does Google's Maps provide this feature or there is other services with databases of towns around worlds and theirs coordinates?

+1  A: 

If Google have it it will be here. When I was tasked with this once we simply downloaded some SQL off the web. Not sure if this was the exact site but it was something similar. Whack it in your database and query when needed.

m.edmondson
Thanx on link, unfortunately this site offers only PO codes and it is only in UK, I am targeting the whole word in my Web APP
adopilot
Ah I see, good luck with that ;-)
m.edmondson
+1  A: 

Take a look at Microsoft's Bing Maps API.

http://msdn.microsoft.com/en-us/library/ff701711.aspx

RBW_IN
Thanx, Here is sample app http://msdn.microsoft.com/en-us/library/dd221354.aspx
adopilot
A: 

Be really careful with these APIs. Read the Terms carefully, as they have some interesting stipulations. To boil it down -- don't try using it for commercial purposes. Google states that you should never cache any of your results (which prohibits geocoding addresses and storing them in your database. I have some old Google code that I did as a proof-of-concept that allowed me to geocode from the server-side via their JSON call.

If you're looking for a REAL adventure, you can get the TIGER-LINE data from the Census bureau and do the geocode math yourself. Semaphore has a great, cheap product for cleaning up addresses and looking up TIGER-LINE stats. 32-bit only.

Brad