Hi there,
Is it possible to calculate latitude and longitude with the help of address. Say you've street address, city, country, post code etc. and you've to calculate the longitude and latitude. Please guide and oblige!
Regards
This is a discussion on Is it possible to calculate latitud/longitud through address within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi there, Is it possible to calculate latitude and longitude with the help of address. Say you've street address, city, ...
Hi there,
Is it possible to calculate latitude and longitude with the help of address. Say you've street address, city, country, post code etc. and you've to calculate the longitude and latitude. Please guide and oblige!
Regards
Learn from cradle to the grave
Hi,
Yes this is good possible. Because each address has a collection of Location objects, however you need a thrick. The CalcPos routine will you find somewhere on this forum (try search on CalcPos). Original in VB fro m Gilles, but various C# copies are posted too. This will start you:
Code:FindResults results = mp.ActiveMap.FindAddressResults(street, city, othercity, region, zip, country); if (results.ResultsQuality <= GeoFindResultsQuality.geoAmbiguousResults) foreach (object o in results) { Location loc = o as Location; if (loc != null) { double lat; double lon; Pushpin PP = mp.ActiveMap.AddPushpin(loc, ""); PP.GoTo(); MPTools.CalcPos(mp.ActiveMap, loc, out lat, out lon);
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
There are currently 1 users browsing this thread. (0 members and 1 guests)