GithubHelp home page GithubHelp logo

rowlando13 / mappymatch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nrel/mappymatch

0.0 0.0 0.0 2.71 MB

Pure-python package for map matching

Home Page: http://mappymatch.readthedocs.io/

License: BSD 3-Clause "New" or "Revised" License

Python 99.24% PowerShell 0.76%

mappymatch's Introduction

mappymatch

Mappymatch is a pure-python package developed by the National Renewable Energy Laboratory for matching GPS traces (GPS points captured while transiting) to the route they represent on a maps. The same thing Google maps does when you are using it. Supported matching algorithms LCSS and ____. Supported map formats are OSM and ____.

Installation

Check out the docs for install instructions.

Example Usage

The current primary workflow is to use osmnx to download a road network and match it using the LCSSMatcher.

The LCSSMatcher implements the map matching algorithm described in this paper:

Zhu, Lei, Jacob R. Holden, and Jeffrey D. Gonder. "Trajectory Segmentation Map-Matching Approach for Large-Scale, High-Resolution GPS Data." Transportation Research Record: Journal of the Transportation Research Board 2645 (2017): 67-75.

usage:

from mappymatch import root
from mappymatch.matchers.lcss.lcss import LCSSMatcher
from mappymatch.utils.geo import geofence_from_trace
from mappymatch.maps.nx.readers.osm_readers import read_osm_nxmap
from mappymatch.constructs.trace import Trace

trace = Trace.from_csv(root() / "resources/traces/sample_trace_1.csv")

# generate a geofence polygon that surrounds the trace; units are in meters;
# this is used to query OSM for a small map that we can match to
geofence = geofence_from_trace(trace, padding=1e3)

# uses osmnx to pull a networkx map from the OSM database
road_map = read_osm_nxmap(geofence)

matcher = LCSSMatcher(road_map)

matches = matcher.match_trace(trace)

Example Notebooks

Example JupyterLab notebooks making use of mappymatch can be found in the mappymatch examples repository.

mappymatch's People

Contributors

nreinicke avatar rowlando13 avatar grahamwaters avatar sjirwin avatar zenon18 avatar vendingmachinefinder avatar jakeholden avatar jsexauer avatar machallboyd avatar jt-eic avatar jhoshiko avatar uranusjr avatar yle-kot avatar yungchidanielcho avatar ryanskeith avatar nowheremanx 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.