MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 2006/2009 Discussion category; Hi! I Search a location in MapPoint 2006 (European version) using an adress and from the found Location (one hit) ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 09-18-2007
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
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 09-18-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,322
Blog Entries: 1
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-19-2007
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-19-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,322
Blog Entries: 1
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 09-19-2007
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
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/round-tripping-street-address-latlong-6385.html

Posted By For Type Date
Programming MapPoint in .NET - MP2K Magazine This thread Refback 09-27-2007 12:11 AM
A More Compact Method for Obtaining Lat/Long - MapPoint Articles - MP2K Magazine This thread Refback 09-18-2007 10:40 AM

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
Obtain LatLong with Address ivan MapPoint Web Service and Virtual Earth 5 05-24-2007 04:00 PM
Underlying Street Address of POI Adrian Sheard MapPoint 2006/2009 Discussion 1 01-18-2007 09:13 PM
LatLong to Address ?? xaxas MapPoint 2006/2009 Discussion 4 06-03-2006 05:13 PM
Getting 'second' street address Anonymous MapPoint 2006/2009 Discussion 1 05-06-2004 09:31 AM
GeoRoadType from Street Address Anonymous MapPoint 2006/2009 Discussion 0 01-25-2004 05:22 AM


All times are GMT -5. The time now is 11:13 PM.


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

Cheap flights to Madrid
Visit Madrid with bullfighting and the "Golden Triangle of Art" ready for you to view. For cheap flights to Madrid book here.

Home Based Travel Agent
Book your travel through a Home Based Travel agent. Travel Counsellors are a Queen's Award winning Travel Agent.

Cheap Flight
Find cheap flights online at dealchecker.co.uk. We search the latest offers from the UK's leading Travel Agents, Tour Operators and Airlines.

Maldives Holidays
If you are looking for a serene, laid back break in the sunshine, Maldives holidays are the choice for you. Be enchanted by the Maldives!

Cheap Holidays
Hunting for cheap holidays? Well save time by booking online with ulookubook.com and you can even check out our top tips to help you hunt down a bargain holiday.

Travel
Check out the travel options on Travel.co.uk.

Cheap Holidays in Fuerteventura
Save your money! Live like royalty! Visit the Canary Islands! Get info on cheap holidays in Fuerteventura, only at On The Beach.


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