plug-in driving simulator

248 views
Skip to first unread message

nicarcola

unread,
Oct 28, 2009, 1:45:10 PM10/28/09
to KML Developer Support - Google Earth Plug-in
I have the lat and lng of a departure and a arrival city. How can I
link with these info to the driving simulator? Or do I have to upload
the simulator files to my own server?

fraser (Earth API Guru)

unread,
Oct 29, 2009, 9:32:12 AM10/29/09
to KML Developer Support - Google Earth Plug-in
Hi,

Yes you should host the files on a server somewhere and then amend the
code as required.

F.

nicarcola

unread,
Oct 29, 2009, 9:52:25 AM10/29/09
to KML Developer Support - Google Earth Plug-in
Thanks,

Where do I find the files and which files?

Nico.
> > the simulator files to my own server?- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

fraser (Earth API Guru)

unread,
Oct 29, 2009, 1:18:17 PM10/29/09
to KML Developer Support - Google Earth Plug-in
Hi Nico,

Errr, on the driving simulator page just view the source.
You would need all of the .js files to make it work.

Before setting out could I suggest you read some general tutorials on
JavaScript first...
http://www.w3schools.com/js/default.asp

Cheers,

F.

Markw65

unread,
Oct 29, 2009, 2:16:57 PM10/29/09
to KML Developer Support - Google Earth Plug-in
Just an FYI, as a simpler alternative, you can embed
http://maps.myosotissp.com/replayroutes.html as an iframe in your own
webpage, and run simulations similar to the driving simulator there.

You need a .gpx, .tcx or .fitlog file to specify the route.

You can specify the route statically using eg
http://maps.myosotissp.com/replayroutes.html#http://myserver.com/myroute.gpx
as the iframe address, or you can control it more dynamically. See
http://maps.myosotissp.com/controls.html for examples of what can be
done/how to do it.

Mark

nicarcola

unread,
Nov 2, 2009, 11:40:39 AM11/2/09
to KML Developer Support - Google Earth Plug-in
Hi F

I copies all the files including the .css. It works. I only miss the
simulated car in the map when i click on start???

Nico.

On 29 okt, 18:18, fraser (Earth API Guru) wrote:
> Hi Nico,
>
> Errr, on the driving simulator page just view the source.
> You would need all of the .js files to make it work.
>
> Before setting out could I suggest you read some general tutorials on
> JavaScript first...http://www.w3schools.com/js/default.asp
>
> Cheers,
>
> F.
>
> On Oct 29, 1:52 pm, nicarcola wrote:
>
>
>
> > Thanks,
>
> > Where do I find the files and which files?
>
> > Nico.
>
> > On 29 okt, 14:32, fraser (Earth API Guru) wrote:
>
> > > Hi,
>
> > > Yes you should host the files on a server somewhere and then amend the
> > > code as required.
>
> > > F.
>
> > > On Oct 28, 5:45 pm, nicarcola wrote:
>
> > > > I have the lat and lng of a departure and a arrival city. How can I
> > > > link with these info to the driving simulator? Or do I have to upload
> > > > the simulator files to my own server?- Tekst uit oorspronkelijk bericht niet weergeven -
>
> > > - Tekst uit oorspronkelijk bericht weergeven -- Tekst uit oorspronkelijk bericht niet weergeven -

nicarcola

unread,
Nov 2, 2009, 12:55:06 PM11/2/09
to KML Developer Support - Google Earth Plug-in
I forgot the link where you can see that the simulated car in the map
is missing: http://www.meerijden.nu/drivingsimulator/drivingsimulator.php

nicarcola

unread,
Nov 2, 2009, 1:17:41 PM11/2/09
to KML Developer Support - Google Earth Plug-in
It is ok now. I missed the smart_marker.png.

nicarcola

unread,
Nov 3, 2009, 8:27:18 AM11/3/09
to KML Developer Support - Google Earth Plug-in
How do I get km instead of miles?

fraser (Earth API Guru)

unread,
Nov 6, 2009, 7:11:27 AM11/6/09
to KML Developer Support - Google Earth Plug-in
Hi,

To convert from miles to km use the following conversion.

var mi2km = function(miles)
{
return miles * 1.609344;
}

F.
Reply all
Reply to author
Forward
0 new messages