MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Is it possible to calculate latitud/longitud through address

This is a discussion on Is it possible to calculate latitud/longitud through address within the MapPoint 2006/2009 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, ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-08-2006
Junior Member
Yellow Belt
 
Join Date: Feb 2006
Posts: 18
Send a message via MSN to Learner Send a message via Yahoo to Learner
Is it possible to calculate latitud/longitud through address

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-08-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
address, calculate, latitud or longitud


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to retrieve complete address from longitudes and latitud Learner MapPoint 2006/2009 Discussion 14 01-04-2007 09:40 AM
How to retrieve nearest city from longitudes and latitud fsarraj MapPoint 2006/2009 Discussion 3 03-08-2006 01:22 PM
Calculate distances Anonymous MapPoint 2006/2009 Discussion 1 11-18-2004 11:58 AM
Calculate route Anonymous MapPoint 2006/2009 Discussion 0 07-03-2003 03:25 AM
I am having trouble... I am trying to calculate r.... Anonymous MapPoint 2006/2009 Discussion 1 07-10-2002 11:30 AM


All times are GMT -5. The time now is 07:21 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54