0

We use MapPoint for computing routes, but the problem is that we have locations that are not on the road like houses backyards and stuff. We work with latitude and longitude coordinates which may or may not be on the road. This may cause a lot of problems for us. How does MapPoint handle such routes? I mean what is the road distance between one house's backyard and another one? Makes no sense, right?

Thanks for any opinions

user2381422
  • 5,645
  • 14
  • 42
  • 56

1 Answers1

1

MapPoint looks for the closest road and then applies a straight line distance to the closest road. This works well for short driveways/etc which are not in the road database.

Note that if the distance is more than a specific amount (I'm not sure the threshold off hand), then MapPoint will report than the point is not on the road network and the route cannot be calculated.

Also it is unclear what the behavior is for your backyard example, if the two backyards are next to each other - it might simply draw a line between the two points.

winwaed
  • 7,645
  • 6
  • 36
  • 81
  • After playing with MapPoint I noticed it is actually not using straight line distance to the closest road as you say. Kinda weird, I expected it also to be straight line distance. By the way, do you have idea how to compute those distances from a location to the closest road? It might be doable somehow from the directions... – user2381422 Sep 06 '13 at 19:57
  • You will need to get the coordinates of the two points and find the great circle distance between them (Haversine Formula). I think you will have problems finding the coordinate of the point the route joins the road - unless MapPoint exposes this as a Location object (unlikely) – winwaed Sep 06 '13 at 22:31