Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to get automatically latitude and longitude from an address in c#?
Posted
Comments
Sanket Saxena 6-May-14 4:39am    
buddy 100's of option on google to do the same....did you tried something???
Member 10276220 6-May-14 4:42am    
not working...my requirement is:
i have a textbox.. i have to put a address in that & giving the address,i automatically get the latitude & longitude. please help me out

1 solution

 
Share this answer
 
Comments
Thanks7872 6-May-14 5:06am    
+5..!
Manas Bhardwaj 6-May-14 5:07am    
thx!
Member 10276220 6-May-14 5:49am    
than Manas....but i have solved it...its very easy... my code is:
string address = txtAddress.Text;
var locationService = new GoogleLocationService();
var point = locationService.GetLatLongFromAddress(address);
var latitude = point.Latitude;
var longitude = point.Longitude;
Manas Bhardwaj 6-May-14 6:00am    
Nice!

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