Link

Run a web demo

  1. Running a web demo for fmm requires the fmm python extension and python dependency
    • flask
    • tornado Install those packages with
      pip install flask tornado
      
  2. Prepare a JSON configuration

STMATCH web app configuration

{
  "input": {
    "network": {
      "file": "network.shp",
      "id": "ID"
    }
  },
  "model": "stmatch",
  "parameters": {
    "k": 32,
    "r": 0.01,
    "e": 0.003
  }
}

FMM web app configuration

{
  "input": {
    "network": {
      "file": "network.shp",
      "id": "ID"
    },
    "ubodt":{
      "file": "ubodt.txt"
    }
  },
  "model": "fmm",
  "parameters": {
    "k": 32,
    "r": 0.01,
    "e": 0.003
  }
}

The network now can also be a OSM file. (e.g., .osm.pbf)

  1. Run the fmm_web_app.py in the web_demo
    # change to directory web_demo from the project folder
    cd example/web_demo
    # Start the web demo app
    python fmm_web_app.py -c stmatch_config.json
    

Check osm_mapmatching for a concrete example.