Coder Social home page Coder Social logo

bobdeng1974 / map_matching Goto Github PK

View Code? Open in Web Editor NEW

This project forked from categulario/map_matching

0.0 1.0 0.0 1012 KB

Algorithms to find the streets that a vehicle should have traveled to generate a given GPS track

Makefile 0.50% TeX 15.16% JavaScript 2.10% Python 49.78% Lua 31.98% Shell 0.47%

map_matching's Introduction

Map-Matching Algorithm

Gitter

My implementation of the map matching algorithm from this article. The goal is to get the streets from a gps track.

This is how it looks like: image The gray line is the gps trace and the colored lines describe the map-matched most-likely route in the streets for the vehicle.

For reference read the resulting article.

Setup

Install:

  • python3
  • redis >= 3.2.0

Download the data using the overpass api, there is a simple curl command to do that in the overpass/ folder:

$ cd overpass/
$ ./get_street_graph.sh

Install python dependencies. You may want to put them inside a virtualenv:

$ pip install -r requirements.py

Upload the street graph to redis:

$ ./main.py loaddata

Load the lua scripts:

$ ./main.py loadlua

run the mapmatching task with a geojson file with a single gps track and a number indicating how many points of the input gps track to process. Use a very hight number if you want the whole route processed

$ ./main.py mapmatching data/route.geojson 5

map_matching's People

Contributors

categulario avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.