Overview

Being the proud owner of a StreetPilot Colormap and also fond of automatic route plotting (which both StreetPilots lack) and discovering that Maps On Us has kindly made available the raw route data on an "As-Is" basis, I've thrown together a bit of perl to translate this into a PCX5-compatible route file, which can then be imported by MapSource (and hopefully other GPS tools that can load PCX5 routes).

The Technical Bits

The program is written in perl 5.6. It was written to 5.x standards according to the books that I have availible, but this is my first venture into perl, so my emphasis was more on "Does it work?" than in following the text exactly, so while functionality with any version of perl 5 is expected, it's not guaranteed. If something breaks on perl 5.0 and you fix it, I'd be glad to hear about it.

It processes data from stdin and send results to stdout. The data it expects is the first block of preformatted text on Maps On Us's raw route data page. You can either select that whole block of text and paste it into a text file, or use any other reasonable means to get that chunk into a file. What I do is pipe the results of wget -q -O - through the perl and into a file.

  1. Copy the URL of the raw output page.
  2. Pull down a copy of the formatted raw output.
    wget -q -O - RawRouteURL | mkrte >foo.rte
  3. Finally, I use the File:Import... option in MapSource to get the .rte file into MapSource to upload to the GPS.
  4. When uploading to the GPS, for StreetPilots and other units that keep route waypoint in a different storage than the "Personal Waypoints", you can send just the routes to the GPS without having to send the waypoints.

How To Get It

mkrteLatest version: 0.1b
perl  Comprehensive Perl
Archive Network

Bugs

Version History

Version 0.1b
Update the "Find the start of the raw data block" search to use pattern matching instead of a raw text string and now handing it the source of the whole raw data page processes correctly.
Version 0.1a
First release.