Detect violations of traffic regulations

HERE Route Matching v8 can compute the (most probable) route through a driven GPS trace. It is very similar to a route matching combined with a route calculation, but not every waypoint has to be reached accurately. Instead, the typical GPS inaccuracies are taken into account. For information on input data, see Input and output.

HERE Route Matching v8 can detect anomalies like speeding or ignoring traffic restrictions in a driven route by analyzing a trace file or by clicking onto points on the interface.

Code

The following is a sample request.

https://routematching.hereapi.com/v8/calculateroute.json?routeMatch=1&mode=fastest;car;traffic:disabled&apiKey={YOUR_API_KEY}

The response will include a list of specific route links where the driver has been speeding or driving into the wrong direction. A sample response might be "Illegally leaving no through traffic zone on link 547294789".

Procedure

You can provide the input data by the request above. Alternatively, you can provide a trace file directly to the interface. Open the example. A list of points and speed limits at those points can be provided and the RME (Route Matching Extension) will calculate a route through them. The trace data is inserted using a trace file in the formats CSV, GPX or NMEA. The trace file contains data such as coordinates, elevation or speed. For more information on input formats, see Input and output. Another way to insert trace data is to directly click the map at any desired location.

Note

The button "Show street level areas" in the upper right-hand corner of the map does not work at the moment. It shows the map as a solid green surface.

Result

The map shows a route with text boxes that display information such as speed limits. The POST request returns a list of warnings at specific route links. For more information on output formats, see Input and output.

results matching ""

    No results matching ""