View Full Version : Route Grouping

10-09-2012, 02:26 PM
I've been using Mappoint as part of my application for a long time. The users select a trucks worth of deliveries based on rough geographic area from within my application, and that group is then fed to the Mappoint control for fine routing, turn by turn directions, etc.

The users are now asking for the ability to select the trucks worth of deliveries by point and click on the map, or selecting via a rectangle, etc. I know that Mappoint cannot have more than one route, but is it possible to plot let's say 100 stops and allow the user to select 10 or 15 of them to be grouped together? I could then take those 10 or 15 stops as a seperate step and do the fine routing as a seperate step.

Just looking for hints as to how to proceed, or perhaps there is a Delphi programmer familiar with this that is looking for a short term contract?


Bob M..

Eric Frost
10-12-2012, 08:06 AM
For grouping locations, I've done this by having the user draw a polygon on the map. If there are multiple polygons you need to deal with, you can use something like Richard Marsden's Shape Name Utility to associate a string with each polygon. Then use QueryShape to return the list of locations within each polygon. (Use For Each shp in objMap.Shapes to loop over the polygons.)

Does this help? Let us know how it goes!