To run this demo, you need to first install the python api of fmm.
- fmm
- flask
- tornado
Install with pip
pip install flask tornado
Try to preprare real world routable road network file (e.g., network.shp or Stockholm.osm.pbf available at https://download.bbbike.org/osm/bbbike/Stockholm/). Then update the json configuration below.
Run the fmm web demo
python web_demo.py -c fmm_config.json
Run the stmatch web demo
python web_demo.py -c stmatch_config.json
Visit http://localhost:5000/demo
in your browser.
A practical tutorial is provided at osm map matching.