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 5 of 5

Round-tripping Street address to LatLong

This is a discussion on Round-tripping Street address to LatLong within the Development forums, part of the MapPoint Desktop Discussion category; Hi! I Search a location in MapPoint 2006 (European version) using an adress and from the found Location (one hit) ...

  1. #1
    micnik is offline Junior Member Yellow Belt
    Join Date
    Sep 2007
    Posts
    16

    Round-tripping Street address to LatLong

    Hi!
    I Search a location in MapPoint 2006 (European version) using an adress and from the found Location (one hit) I get Latitude and Longitude.
    If I later try to use the same Latitude and Longitude to find the street address it only works in some cases and in some other cases I only almost get the same address.
    For example:
    Streetaddress: Hagagatan 26
    City: Stockholm
    Country: Sverige

    Gives: Latitude = 59.346137568354607 and Longitude = 18.051149575039744

    And using that LatLong we get back:
    Streetaddress: Hagagatan 23
    City: Stockholm
    Country: Sverige

    Why is this?
    Is there no way to do this in an exact way in mappoint,
    or is this just a bug in our code?

    Regards / Michael

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Round-tripping Street address to LatLong

    How are you getting the address from the lat/lon?

    Reverse geocoding with MapPoint is not really exact, the reverse geocoding algorithms are just hacks.

    I don't think there is any way to do it exactly..

    Eric

  3. #3
    micnik is offline Junior Member Yellow Belt
    Join Date
    Sep 2007
    Posts
    16

    Re: Round-tripping Street address to LatLong

    Hi Eric!
    We use:

    Location objLocation = map.GetLocation(latitude, longitude, 1);

    objLocation.GoTo();
    FindResults mapResults = map.ObjectsFromPoint(map.LocationToX(objLocation), map.LocationToY(objLocation));

    If I then look at the mapResults there is only one Location that has a StreetAddress.

    Regards / Michael

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Round-tripping Street address to LatLong

    Hmm, well I guess it just doesn't work the way you want.

    My only thought if you need it would be to maintain a database of your lookups so that when you make the round trip you can refer back to your database first before making a call to MapPoint.

    Eric

  5. #5
    micnik is offline Junior Member Yellow Belt
    Join Date
    Sep 2007
    Posts
    16

    Re: Round-tripping Street address to LatLong

    OK!
    Thanks for your reply.
    In my case i got the adress (including Latitude and Longitude) from another application that uses MapPoint and I wanted a way to verify the data that was sent to "my" application.

    But I gues that's not possible to do.

    Anyway I really appriciate your quick response to my questions.

    Regards / Michael

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. LatLong to Address ??
    By xaxas in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 10-19-2008, 10:16 PM
  2. Obtain LatLong with Address
    By ivan in forum Bing Maps and MapPoint Web Service
    Replies: 5
    Last Post: 05-24-2007, 05:00 PM
  3. Underlying Street Address of POI
    By Adrian Sheard in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-18-2007, 10:13 PM
  4. Getting 'second' street address
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-06-2004, 10:31 AM
  5. GeoRoadType from Street Address
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-25-2004, 06:22 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