-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Road switch to early. #141
Comments
Few questions:
|
Maybe this is a misconception of the output. Please note that the output consists of linestrings where each linestring represents the path TO the matched position on the road which means the END point of each linestring indicates the matched position. As an example, let's select some coordinates of the output and put them on the map:
That looks all quite reasonable: Please verify it yourself with the following geojson snippet on geojson.io.{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
13.373518097582213,
52.504356782706154
]
},
"properties": {
"marker-color": "#eeda00",
"marker-size": "medium",
"marker-symbol": ""
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
13.373238062036464,
52.504382743126506
]
},
"properties": {
"marker-color": "#00a225",
"marker-size": "medium",
"marker-symbol": ""
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
13.372228000000002,
52.50504380000001
]
},
"properties": {
"marker-color": "#0010f4",
"marker-size": "medium",
"marker-symbol": ""
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
13.372138499999998,
52.505195899999990
]
},
"properties": {
"marker-color": "#ff0000",
"marker-size": "medium",
"marker-symbol": ""
}
}
]
} |
Few questions:
Yes. Actually it is near-realtime and I use offline mode. Probably online would be better, but I currently have no time for that. I want to know on which streets the vehicle drove, so I pass the points as input and use the road id to extract street-data from database.
I would expect that a linestring with an road-id is completely on that road, i.e. that the road-id change happens at the intersection and not shortly before the intersection. Currently I can't determine the correct roads from what I have, because linestring with a single road-id may cover more than one real street with different name, reference and road type.I.e. the first 266339 is on a residential and primary road although id 266339 is the ID of the primary.
Attached
Does that mean that there is no way to detect which linestring is on which road? Because that's actually what I want to know: How much I traveled on which road class. |
After looking at some travels through tunnels I now understand what you mean with the misconception of the output. So that output is not really usable for my purpose (most of the time it nearly does what I want)? Is there any other way to get what I want?
ATM the only idea I have is to take the matched points and extract the roads from the database which match these points. Or can I get that information via the Java interface? |
Hi I am using a modified version of Barefoot's offline matching to return road ids and other information including the length travelled, the imputed speed experienced and some other things. The elementary start came from here #18 but there are some other caveats
My code isn't publishable as such yet, but if that isn't clear I can try to extract the relevant changes to demonstrate more clearly what is happening. |
First: Thanks a lot for that software.
I'm using current Git version with Geofabrik Germany/Brandburg dataset from this week and default settings as delivered. Output as slimjson.
When I pass points to barefoot then when switching to a new road it properly adds the intersection point of the roads. But the road ID passed with the point data switches already one or more points before the intersection (as if the width of the road is taken into account).
A small remark, I also wonder why a single road-id is split into multiple linestrings in the result. I understand that a single real road is split into multiple road-ids, but for each road-id I don't see a necessarity for the split in the result.
Below is an example containing road ID first and linestring as delivered behind. At the end a picture indicating the relevant points.
The text was updated successfully, but these errors were encountered: