![]() |
2007-08-21
, 19:23
|
|
Posts: 299 |
Thanked: 168 times |
Joined on Jun 2006
@ Wales UK
|
#2
|
#!/bin/sh
FROM="233 S. Upper Wacker Dr, Chicago, IL"
TO="1060 W. Addison St, Chicago, IL"
wget -O - "http://maps.google.com/maps?q=$FROM to $TO&output=js" \
2&>/dev/null >google_map.js
gpsbabel -i google -f google_map.js -o gpx -F google_map.gpx
![]() |
2007-08-22
, 17:32
|
|
Posts: 1,245 |
Thanked: 421 times |
Joined on Dec 2005
|
#3
|
![]() |
2007-08-23
, 05:51
|
|
Posts: 299 |
Thanked: 168 times |
Joined on Jun 2006
@ Wales UK
|
#4
|
![]() |
2007-08-23
, 14:22
|
Posts: 2 |
Thanked: 0 times |
Joined on Aug 2007
|
#5
|
Straight from the gpsbabel docs
Thats -zero not -ohhh in the wget line
You will probably have to play with the output
Rick
![]() |
2007-08-23
, 16:31
|
|
Posts: 14 |
Thanked: 2 times |
Joined on Aug 2007
@ Virginia
|
#6
|
The API is limited to allowing You to display map images only, and does not provide You with the ability to access the underlying map data, any services provided by Google in connection with its maps service (such as local search or directions), or any other Google service.
The Following User Says Thank You to thel8elvis For This Useful Post: | ||
![]() |
2007-08-23
, 20:44
|
|
Posts: 1,245 |
Thanked: 421 times |
Joined on Dec 2005
|
#7
|
Perhaps you can explain how it works. I've tried to find a correlation between your script and say the kml output and it doesn't seem similar. For instance, your output has far more trackpoints. Do you just divide two points by a certain distance and include them for more accurate tracking?
http://gnuite.com:8080/cgi-bin/gpx.cgi/directions.gpx does not parse the description properly. Does anyone have this script, I would prefer to host it locally and be able to fix issues like this quickly. Is there a reason it isn't readily avaible?