PDA

View Full Version : MapPoint reverse geocoding



Anonymous
01-02-2003, 10:27 AM
I place some waypoints in a route programmatically in a my C# application in a MapPoint control.
MapPoint calculates the route wrong: the waypoints are under highways and not over them. So the user corrects the waypoints and I get the correct long/lat via the reverse geocoding algoritm.
But when I insert these waypoints on the map again to calculate the route, they are again under the highways.
As so I know that long/lat are correct, how can I insert the point over the highways?
Thanks, Damiano Curia

Anonymous
01-02-2003, 12:21 PM
Note: I read the article at http://www.mp2kmag.com/articles.asp?ArticleID=50

And it works! I get the correct long/lat and Locations with the StreetAddress!=null, but if I add these locations to my ActiveRoute MapPoint doesn't see them belonging to the highway, so makes the route exit the highway.

Any solutions?
Thanks, Damiano Curia

schuchhardp
01-03-2003, 09:13 AM
The reason for this is -I think- that according to MapPoint, waypoints can not be on a highway. You can verify this by placing two or more pushpins on a highway and have MP calculate the route for them.

When you try to add a waypoint on a highway it's like MP thinks you would want to walk around in the bushes over there (next to or under the highway), instead of stretching your legs somewhere on the highway itself. In a Microsoft kind of way it makes sense, but it introduces some nasty programming issues as you have noticed.

I'm pretty sure this post doesn't solve your problem. Hope I've helped though.
Pascal