Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

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 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, ...

  1. #1
    Learner is offline Junior Member Yellow Belt
    Join Date
    Feb 2006
    Posts
    18

    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

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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 &#40;results.ResultsQuality <= GeoFindResultsQuality.geoAmbiguousResults&#41;
                    foreach &#40;object o in results&#41; &#123;
                        Location loc = o as Location;
                        if &#40;loc != null&#41; &#123;
                            double lat;
                            double lon;
                            Pushpin PP = mp.ActiveMap.AddPushpin&#40;loc, ""&#41;;
                            PP.GoTo&#40;&#41;;
                            MPTools.CalcPos&#40;mp.ActiveMap, loc, out lat, out lon&#41;;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to retrieve nearest city from longitudes and latitud
    By fsarraj in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 05-11-2011, 03:04 AM
  2. How to retrieve complete address from longitudes and latitud
    By Learner in forum MapPoint Desktop Discussion
    Replies: 14
    Last Post: 01-04-2007, 09:40 AM
  3. Calculate distances
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-18-2004, 11:58 AM
  4. Calculate route
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-03-2003, 03:25 AM
  5. I am having trouble... I am trying to calculate r....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-10-2002, 11:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96