bmm

bmm: Bayesian Map-matching - Published in JOSS (2022)

https://github.com/samduffield/bmm

Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 7 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: arxiv.org, joss.theoj.org
  • Committers with academic emails
    3 of 6 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Scientific Fields

Political Science Social Sciences - 90% confidence
Sociology Social Sciences - 87% confidence
Mathematics Computer Science - 84% confidence
Last synced: 4 months ago · JSON representation

Repository

Map-matching using particle smoothing methods.

Basic Info
  • Host: GitHub
  • Owner: SamDuffield
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 3.87 MB
Statistics
  • Stars: 15
  • Watchers: 1
  • Forks: 2
  • Open Issues: 2
  • Releases: 1
Created over 6 years ago · Last pushed over 3 years ago
Metadata Files
Readme Contributing License

README.md

bmm: Bayesian Map-Matching

DOI

Map-matching using particle smoothing methods.

Docs and methodology.

Contributing guidelines can be found in the repo's CONTRIBUTING.md file.

Install

pip install bmm

Load graph and convert to UTM

UTM (Universal Transverse Mercator) is a commonly used projection of spherical longitude-latitude coordinates into square x-y coordinates. ```python import numpy as np import pandas as pd import osmnx as ox import json

import bmm

graph = ox.graphfromplace('Porto, Portugal') graph = ox.project_graph(graph) ```

Load polyline and convert to UTM

python data_path = 'simulations/porto/test_route.csv' polyline_longlat = json.loads(pd.read_csv(data_path)['POLYLINE'][0]) polyline_utm = bmm.long_lat_to_utm(polyline_longlat, graph) or generate fake data python fake_route, fake_polyline_utm = bmm.sample_route(graph, timestamps=15, num_obs=25)

Offline map-matching

python matched_particles = bmm.offline_map_match(graph, polyline=polyline_utm, n_samps=100, timestamps=15)

Online map-matching

```python

Initiate with first observation

matchedparticles = bmm.initiateparticles(graph, firstobservation=polylineutm[0], n_samps=100)

Update when new observation comes in

matchedparticles = bmm.updateparticles(graph, matchedparticles, newobservation=polylineutm[1], timeinterval=15) ```

Plot

python bmm.plot(graph, particles=matched_particles, polyline=polyline_utm) porto_mm

Cite

@article{Duffield2022, doi = {10.21105/joss.03651}, url = {https://doi.org/10.21105/joss.03651}, year = {2022}, publisher = {The Open Journal}, volume = {7}, number = {70}, pages = {3651}, author = {Samuel Duffield}, title = {bmm: Bayesian Map-matching}, journal = {Journal of Open Source Software} }

Owner

  • Login: SamDuffield
  • Kind: user

JOSS Publication

bmm: Bayesian Map-matching
Published
February 11, 2022
Volume 7, Issue 70, Page 3651
Authors
Samuel Duffield
University of Cambridge
Editor
Bita Hasheminezhad ORCID
Tags
python map-matching GPS

Papers & Mentions

Total mentions: 2

A role for triglyceride lipase brummer in the regulation of sex differences in Drosophila fat storage and breakdown
Last synced: 3 months ago
Physiological and metabolomic consequences of reduced expression of the Drosophila brummer triglyceride Lipase
Last synced: 3 months ago

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 213
  • Total Committers: 6
  • Avg Commits per committer: 35.5
  • Development Distribution Score (DDS): 0.108
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Sam Duffield s****2@c****k 190
SamDuffield 3****d 12
Sam Duffield s****d@M****l 6
Sam Duffield s****d@d****k 3
Sam Duffield s****d@m****e 1
Sam Duffield s****d@d****k 1

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 10
  • Total pull requests: 1
  • Average time to close issues: 10 days
  • Average time to close pull requests: less than a minute
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 1.3
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • matt-graham (10)
Pull Request Authors
  • SamDuffield (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 46 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 6
  • Total maintainers: 1
pypi.org: bmm

Bayesian Map-matching

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 46 Last month
Rankings
Dependent packages count: 10.0%
Stargazers count: 15.2%
Forks count: 19.1%
Average: 19.6%
Dependent repos count: 21.7%
Downloads: 31.9%
Maintainers (1)
Last synced: 4 months ago

Dependencies

requirements.txt pypi
  • Shapely *
  • geopandas *
  • matplotlib *
  • networkx *
  • numba *
  • numpy *
  • osmnx *
  • pandas *
  • pillow >=6.2.0
  • scipy *