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

## 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. 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. ## 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. 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. ## 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. 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)

#### Posting Permissions

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