Differences between revisions 7 and 8
Revision 7 as of 2005-12-06 19:22:49
Size: 1673
Comment:
Revision 8 as of 2005-12-06 19:23:17
Size: 1696
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#acl All:read,write

This piece of software is for getting maps off the expedia server. It's basically similar to the one that comes with gpsdrive, but mine has some better features:

  • it's python ;-)

  • always downloads maps of same area to the same file (we are being nice to the server)
  • does filename tagging (useful for keeping multiple mapsets)
  • lots of stuff I forgot

attachment:getmap.py

...if you have problems, contact me at radek@podgorny.cz. If not, I would appreciate if you wrote some better documentation on how to use it...

VERY basic documentation

The way to call the script goes here:

./getmap.py start-latitude start-longitude end-latitude end-longitude scale tag

where scale is one of the available expedia scales (the script will tell you what number to enter when you do it incorrectly). The tag parameter is present to distinguish between different mapsets.

To actually do something, you have to append a --download or --writetofile parameter.

The --overwrite parameter is quite self-explanatory.

For simplicity I suppose you run all the commands in ~/.gpsdrive/ directory. (That even the script itself is located here.)

So, let's do something useful:

./getmap.py 49.9398 14.2170 50.1825 14.7129 3950 praha --download

This will download the maps. But we need to tell GPSDrive about them, so let's issue:

./getmap.py 49.9398 14.2170 50.1825 14.7129 3950 praha --writetofile

This will create a file named praha.txt with relevant data.

Next we include the data in GPSDrive database:

cat praha.txt >> map_koord.txt

We're done :-)