Ability to Route Around Specified POI's.

4 posts / 0 new
Last post
pilgrimprogramming
Ability to Route Around Specified POI's.

My client is a state government entity that is requesting a solution to completely avoid points of interest at the users discretion.

Come to think of it, this would be a very nice improvement to the existing publically available MapQuest site.  Ideally, it would be similar to the "Avoid xxx" funtionality with an added option of 1 or more POI's being selected and then finding the best route while avoiding what the user has choosen.


MQBrianCoakley
You can use mustAvoidLinkIds
You can use mustAvoidLinkIds and/or tryAvoidLinkIds if you want to go out and grab linkIds. Or, just using POI lat/lngs, you can use control point routing to encourage or discourage a route around a point.

pilgrimprogramming
Thank you for your speedy

Thank you for your speedy response!  I do have some follow-up questions.  My initial assessment of this project seems to have been somewhat lacking.  As of now, I am guessing that this would be best accomplished in the manner:

  1. Get the initial route between the two points.
  2. Then use the existing sessionID to find all of the places along that route that the user has specified.
  3. Once I've gotten this list, obtain another route utilizing the control point routing.
  4. Repeat steps 2 & 3 until I no longer return any POI's.

My question is this:  There could be potentially a very large number of items in the list of control points to route around.  Is there a limit on the number that I can request to avoid?  Also, can you think of a better way of doing this that I'm not seeing?

Thank you for you assistance.

Michael


MQBrianCoakley
There is no limit to the
There is no limit to the number of avoids. But longer requests always mean longer response gimes. Reduce the number of avoids/control points by the bounding box of the route locations (+ buffer if needed), by allowing the user to set the avoids, or some other means. There are users that have hundreds of avoids, but this seems excessive and causes slow responses.