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
Repository
Map-matching using particle smoothing methods.
Basic Info
Statistics
- Stars: 15
- Watchers: 1
- Forks: 2
- Open Issues: 2
- Releases: 1
Metadata Files
README.md
bmm: Bayesian Map-Matching
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)

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
- Repositories: 3
- Profile: https://github.com/SamDuffield
JOSS Publication
bmm: Bayesian Map-matching
Authors
University of Cambridge
Tags
python map-matching GPSPapers & Mentions
Total mentions: 2
A role for triglyceride lipase brummer in the regulation of sex differences in Drosophila fat storage and breakdown
- DOI: 10.1371/journal.pbio.3000595
- OpenAlex ID: https://openalex.org/W3001831138
- Published: January 2020
Physiological and metabolomic consequences of reduced expression of the Drosophila brummer triglyceride Lipase
- DOI: 10.1371/journal.pone.0255198
- OpenAlex ID: https://openalex.org/W3201060420
- Published: September 2021
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: 5 months ago
Top Committers
| Name | 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 |
Committer Domains (Top 20 + Academic)
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
- Homepage: http://github.com/SamDuffield/bmm
- Documentation: https://bmm.readthedocs.io/
- License: mit
-
Latest release: 1.3
published about 4 years ago
Rankings
Maintainers (1)
Dependencies
- Shapely *
- geopandas *
- matplotlib *
- networkx *
- numba *
- numpy *
- osmnx *
- pandas *
- pillow >=6.2.0
- scipy *
