Comments (3)
The default setting is to match edges. The path_pred_onlynodes
shows the nodes, in this case 2 because and edge is between two nodes. You can also try path_pred
to see the edges more explicitly.
from leuvenmapmatching.
Thanks. Is there a way to match only the nearest node from each of my coordinates ?
from leuvenmapmatching.
For each match you can ask for the location and where this point is on the edge (this is also used for the plot function). For the first match like in this case you could check:
edge = matcher.lattice_best[0].edge_m
if edge.ti < 0.5:
print(f"First node is {edge.l1}")
else:
print(f"First node is {edge.l2}")
Starting from the closest node on the first edge makes sense, so in the master branch the path_pred_onlynodes
function has been updated to use this by default.
from leuvenmapmatching.
Related Issues (20)
- Can someone please put their working example? HOT 5
- Map matching does not work HOT 1
- osmnx, Geopandas, DistanceMatcher HOT 1
- Visualisation HOT 5
- No route satisfies mapmatch criteria HOT 1
- Map object has missing edges when importing from OSMNX HOT 2
- SimpleMatcher math domain error HOT 7
- does timestamp could be used for matching? HOT 1
- I have two questions about matching details。 HOT 8
- Different matching results with the same code and data source HOT 4
- Is it possible to map match a single gps point? HOT 1
- Can the matcher handle the case when there are multiple edges between two nodes? HOT 3
- How to use copy "copy_lastinterface" function and "match_incremental" properly ?
- How to match GPX data that pass through an area with no road network? HOT 7
- Could you provide test data like "route.gpx" HOT 2
- What does "Stopped early at observation 0, no starting points/edges x found for which |x - (30.57,114.16)| < 250" mean? HOT 1
- I can plot the match results using mmviz.plot_map, but matcher.path_pred_onlynodes is empty. HOT 3
- How to exclude the first/last edges from the match if they have only a small overlap with the source trajectory? HOT 1
- How to fix ValueError: not enough values to unpack (expected 2, got 0) in bb
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leuvenmapmatching.