This is a new tool which lets you extract the approximate coordinates of a route object.
If does this by adding a rest stop every 1 minute and programmatically setting all the speeds to 1 mile per hour, and then looping over all the directions and writing out their coordinates which approximates the coordinates of the route.
I say the the coordinates of the directions approximate the coordinates of the route, because they don't capture every turn, and where there are turns or curves, they do not necessary always fall exactly on the route.
In any case, it would be good enough for many visualization purposes.
This was originally developed based on ideas posted and discussed by Mattys Consulting, blue jay, Wilfried, and Winwaed in this thread: How to get GPS coordinates by interval on the route in mappoint
Instructions
Download and unzip the attachment below.
When you open the Excel file, be sure to Enable Macros or Options | Enable this content -- depending on your version of Excel, the screenshot below it from Excel 2007.
Next -- click Sample Data to generate a sample route between Chicago and St. Louis, then click Begin to set the routing parameters (slow speeds and lots of rest stops) and write out the coordinates of the route.
You could then save the spreadsheet import all the lat/lon's back up top of the route (you can use the named range "Sequence") to see how well the extracted direction coordinate match the route.
One improvement I can see just looking at the screenshot above is to make Interstates and Toll Roads "preferred" as otherwise with all speeds set to 1 mph, it always takes the shortest network path often on local roads which would not make sense for a city-to-city trip. Alternatively you could set the interstate and highways speeds to 2 mph.
Have fun and let me know if you see any other ways to make improvements or if you have any requests!
Eric




1Likes
LinkBack URL
About LinkBacks








Reply With Quote
