Class: IWLocationProviderNMEA

IWLocationProviderNMEA

A class to simulate geolocation events from a NMEA 0183 file containing e.g. a GPS log. See http://de.wikipedia.org/wiki/NMEA_0183 for details on the file format. Usage:

var options = { speedFactor: 16, accuracy: 99, updateMap: false, showRadius: true, maxDrawingRadius: 100 };

var sim = new IWGeoLocationSimulatorNMEA(map, options);

IWEventManager.addListener(sim, 'onsimulationstart', function()
{
	console.log('Simulation starts');
});

IWEventManager.addListener(sim, 'onsimulationend', function()
{
	console.log('Simulation ends');
});

IWEventManager.addListener(sim, 'oninitialize', function()
{
	sim.start();
});

var url = 'http://staging.mapandroute.de/data/gps/GPS_iw_BnParacelsusstr106.log'; 
sim.setUrl(url);

new IWLocationProviderNMEA()

Creates a simulator for the specified map and input file

Methods


start()

Starts the simulation. This must not be called before the oninitialize event has been triggered.
Returns:
Type
void

stop()

Stops the simulation.
Returns:
Type
void