Home PageFacebookRSS News Feed
PocketGPS
Web
Read the current newsletter! Weekly
Newsletter
SatNav,GPS,Navigation
Pocket GPS World - SatNavs | GPS | Speed Cameras: Forums

Pocket GPS World :: View topic - Google and Tomtom
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in for private messagesLog in for private messages   Log inLog in 

Google and Tomtom
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Pocket GPS World Forum Index -> TomTom Portable Navigation Devices
View previous topic :: View next topic  
Author Message
houghi
Occasional Visitor


Joined: Jul 08, 2007
Posts: 3

PostPosted: Sun Jul 08, 2007 11:25 am    Post subject: Google and Tomtom Reply with quote

maps.google.com has a new feature. If you get directions, you can drag the route around, making an iternerary.

The link can be turned into a file for the Tomtom

I have put this online. The code is there as well and can be placed on other sites.
http://houghi.org/tomtom/

Have fun
Back to top
View user's profile Send private message
RQ
Regular Visitor


Joined: Apr 08, 2006
Posts: 240
Location: Clevedon

PostPosted: Sun Jul 08, 2007 4:06 pm    Post subject: Reply with quote

You can also use TYRE - available here
http://www.janboersma.nl/gett/index.php
_________________
RQ

TT1v3 6.560 1713 UK&NI 660.1199
TTG700 6.520 1387 MoWE 660.1219
Back to top
View user's profile Send private message
houghi
Occasional Visitor


Joined: Jul 08, 2007
Posts: 3

PostPosted: Sun Jul 08, 2007 4:50 pm    Post subject: It is different from Tyre Reply with quote

Tyre is a great program, however there are some differences.

First Tyre runs on Windows, which I do not have, so I can't run it.
Second it is based on Google Earth, while the site relies on Google maps. Google earth is a program you need to run on your PC, google maps you can use when on the road in e.g. a internet cafe.

This means when I am e.g. in Spain, where I do not have my PC with me, I just go into a place where there is a PC, determine my route, save it my Tomtom and be on my daily route again.

Also I can use it at my place where I work and am not allowed to install Google Earth.

Again, Tyre is most likely a great program. This one is just different and intended for thos who do not want/can use Tyre.
Back to top
View user's profile Send private message
Andy_P
Pocket GPS Moderator
Pocket GPS Moderator


Joined: Jun 04, 2005
Posts: 19991
Location: West and Southwest London

PostPosted: Mon Jul 09, 2007 2:00 pm    Post subject: Reply with quote

That looks SO cool!

Bang goes work for the rest of the day, while I play with it!
Back to top
View user's profile Send private message
Andy_P
Pocket GPS Moderator
Pocket GPS Moderator


Joined: Jun 04, 2005
Posts: 19991
Location: West and Southwest London

PostPosted: Mon Jul 09, 2007 2:18 pm    Post subject: Reply with quote

OK... First thing I've found.... Moving the start and end points a bit (as per instructions) is important, but what you need to do is click and drag the TOP of the green and red "flags" rather than the bottom - that just adds another intermediate step.

Secondly. It doesn't make it very clear that the URL you need is got by clicking "link to this page" in the top right. Copy that into the script and it seems to work!
Back to top
View user's profile Send private message
barryd
Frequent Visitor


Joined: Mar 27, 2004
Posts: 285
Location: Cheshire, England

PostPosted: Mon Jul 09, 2007 4:47 pm    Post subject: Reply with quote

Hi
This does look useful, thanks.
Basically it's great, but I have had the following issues with it (in IE7 on XP MCE if that matters):
- It's not showing negative values as negatives, so longitudes West are coming out as the correct number but East. The same might happen for latitudes South, but I haven't tried them.
- It's adding an unwanted ~ then spaces and two carriage returns at the end of its output. This one is easy to ignore when you copy and paste the results, but I haven't tried to see what it does in TomTom if you include it.
Hope this helps.
_________________
Barry Davies
Back to top
View user's profile Send private message
Andy_P
Pocket GPS Moderator
Pocket GPS Moderator


Joined: Jun 04, 2005
Posts: 19991
Location: West and Southwest London

PostPosted: Mon Jul 09, 2007 7:11 pm    Post subject: Reply with quote

Hmmm...
Seems you're right Barry.

The test itinerary I did at work (my normal route home) LOOKED fine - all the place names were right, but I had no GPS signal so it wouldn't show me a map of the route (another TomTom annoyance but that's another story).
When I went outside and tried to follow it home, all the waypoints were over in East London rather than West.

Seems someone has left out a minus sign somewhere in that code.
I'm not sure where 'houghi' got it. Is it from Google themselves, houghi? Who do we contact to tell them it's NEARLY so good but has this problem.

I'm not using IE, so it doesn't seem to be a browser thing.
Back to top
View user's profile Send private message
vroomfondel
Regular Visitor


Joined: May 12, 2006
Posts: 224
Location: Hampshire

PostPosted: Mon Jul 09, 2007 8:01 pm    Post subject: Reply with quote

I got the same result. Anything west of the meridian is wrong.
Seems to be due to the use of preg_replace to remove the + or - signs.

Shame because it looks promising.
I think he wrote it himself..


Last edited by vroomfondel on Mon Jul 09, 2007 9:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
46jimbo
Regular Visitor


Joined: Apr 24, 2005
Posts: 185

PostPosted: Mon Jul 09, 2007 8:29 pm    Post subject: Reply with quote

In Notepad, I just added a minus sign at the start of each line and it solved the problem.
Back to top
View user's profile Send private message
vroomfondel
Regular Visitor


Joined: May 12, 2006
Posts: 224
Location: Hampshire

PostPosted: Mon Jul 09, 2007 8:34 pm    Post subject: Reply with quote

46jimbo wrote:
In Notepad, I just added a minus sign at the start of each line and it solved the problem.

Too messy if you cross the meridian though.
The code fix appears to be simple; don't strip off the minus signs. I'll test it on my website.


Last edited by vroomfondel on Mon Jul 09, 2007 9:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
vroomfondel
Regular Visitor


Joined: May 12, 2006
Posts: 224
Location: Hampshire

PostPosted: Mon Jul 09, 2007 9:26 pm    Post subject: Reply with quote

Change lines 63 & 67 in tomtom.php

$x = preg_replace('/[\+\-]/', '', $loc[1]);
...
$y = preg_replace('/[\+\-]/', '', $loc[2]);

To

$x = preg_replace('/[\+]/', '', $loc[1]);
..
$y = preg_replace('/[\+]/', '', $loc[2]);

Put the html and php files on your own website and click on the html file.

The ~ and two extra CRs at the end appear to be spurious lines on the end of tomtom.php
Back to top
View user's profile Send private message
houghi
Occasional Visitor


Joined: Jul 08, 2007
Posts: 3

PostPosted: Mon Jul 09, 2007 9:51 pm    Post subject: Corrected code and site Reply with quote

The code is corrected in both the file you download and the site itself and I hope that the site is a little bit clearer as to what to copy where.

I have also added thanks to the person who actualy wrote the code.
Back to top
View user's profile Send private message
Andy_P
Pocket GPS Moderator
Pocket GPS Moderator


Joined: Jun 04, 2005
Posts: 19991
Location: West and Southwest London

PostPosted: Mon Jul 09, 2007 10:23 pm    Post subject: Reply with quote

Thanks everyone.
I just tried to implement the corrections myself using Notepad, and it wasn't working for me, so you've saved me some detective work.

I think you are all damned clever! Not Worthy

houghi - you have a PM
Back to top
View user's profile Send private message
robatwilliams
Occasional Visitor


Joined: Mar 01, 2006
Posts: 7

PostPosted: Fri Aug 03, 2007 7:14 pm    Post subject: Reply with quote

Shame that Google Maps limts the itinerary to 90 or so waypoints. I tried plotting a road navigation rally which uses many country lanes and hundreds of turns.
Back to top
View user's profile Send private message
Oldboy
Pocket GPS Moderator
Pocket GPS Moderator


Joined: Dec 08, 2004
Posts: 10622
Location: Suffolk, UK

PostPosted: Fri Aug 03, 2007 7:38 pm    Post subject: Reply with quote

robatwilliams wrote:
Shame that Google Maps limts the itinerary to 90 or so waypoints. I tried plotting a road navigation rally which uses many country lanes and hundreds of turns.
I shouldn't worry too much about that, TT can only handle 48 Waypoints.
_________________
Richard

TT 910 V7.903 (9183/081205) OS:2344
Europe version 1045.10005
TT Via 135 App 12.075
Western Europe v1075
Back to top
View user's profile Send private message Visit poster's website







Posted: Today    Post subject: Pocket GPS Advertising

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pocket GPS World Forum Index -> TomTom Portable Navigation Devices All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB 2.0.11 © 2001 phpBB Group
phpBB port v2.1 based on Tom Nitzschner's phpbb2.0.6 upgraded to phpBB 2.0.4 standalone was developed and tested by:
ArtificialIntel, ChatServ, mikem,
sixonetonoffun and Paul Laudanski (aka Zhen-Xjell).

Version 2.1 by Nuke Cops 2003 http://www.nukecops.com

Make a Donation



CamerAlert Database

Click here for the PocketGPSWorld.com Speed Camera Database

Download Speed Camera Database
19.103 (20 Oct 21)



WORLDWIDE SPEED CAMERA SPOTTERS WANTED!

Click here to submit camera positions to the PocketGPSWorld.com Speed Camera Database


12mth Subscriber memberships awarded every week for verified new camera reports!

Submit Speed Camera Locations Now


CamerAlert Apps



iOS QR Code






Android QR Code







Terms & Privacy


GPS Shopping