This sample application is discussed in this StreamsDev article. It demonstrates how to use the OSMPointMatcher operator in the Geospatial toolkit.
You need:
- Version 2.7 or greater of the com.ibm.streamsx.inet toolkit
- The
MapViewerSampleproject.
This sample demonstrates map matching in Bewdley, Ontario. An OpenStreetMap (OSM) road network file is required to perform the map matching. So, before you can run the sample, download the OSM file:
- Visit the OpenStreetMap export page for Bewdley
- Click export in the left pane
- A
map.osmfile will be generated for download. Download the file and save it asbewdley.osmin theetcfolder of this application.
Once the OSM file is saved in the etc folder,
- Import the projects into Streams Studio
- Compile and launch the OSMPointMapMatchingSample application and launch it in Distributed mode.
Once the application is running, go to http://PE HOST:8080/map/map.html, where PE HOST is the host where the Map Viewer operator in the application is running.
See the image below for how to find out the PE host.

Running application: The green markers represent raw GPS locations. The yellow and red markers represent mapped locations on the road.
