-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
SnaptoRoads - A path with 58 locations only returns 5 snappedPoints back #62
Comments
Hi again |
I put my Path here (what I pass to the SnapToRoadsRequest.Path) |
But that is what google returns, which seems du be the same as the deserialized response |
Could be... |
Good to know. Thanks. |
Would I have another option to snap the gps points to a road if I don't get as much points as google would need ? my drivers are often in areas with no or less connectivity and it occurs that I get only every few minutes gps coordinates. thanks in advance. |
Not through Google. |
My goal is a realistic route visualization along the real way my drivers drove. From above screenshot you can see that the polylines are straight connections between each point which is by design and d o n t snap on the road. That's what I want to achieve: Snao that polyline on the real road |
Maybe the nearestroad API of the Roads API but as far as I read it is a very fragile stuff. For the SnapToRoads API the GPS waypoint should not exceed a distance of max. 300 meters. |
Yes you can try nearest roads. |
regarding "directions api to 'fake' the result" Yes that would be pretty much sufficient ... PEASE could you give me a sample or starting point for such scenario as in my case, where I have several pre-collected waypoints ? Thanks in advance. |
Sorry i can't help much with that. |
Ok thanks |
Hi,
I have that map with 58 markers.
I put that 58 locations as path to the
SnapToRoadsRequest
instance but I only get 5SnappedPoints
back.Any idea?
I put the JSON response (my data where I put the snappedPoints inside) as gist
Here my code:
Thanks in advance.
best
Eric
The text was updated successfully, but these errors were encountered: