-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Snap to road? #45
Comments
This component uses routing capabilities provided by Google. They already pre-snap the data onto roads. Could you elaborate a bit more what exactly you're suggesting? |
Closing due to inactivity / insufficient information. Feel free to add some more info and I'll gladly reopen. |
Hey @bramus ! I have the same question. It seems the route does not snap to the road. It looks great when zoomed out but when zoomed in further, it looks really "choppy". See the screenshots below: |
The components responsible for rendering the route – both from This explains why there are differences between the roads and the route on iOS when using Apple Maps on iOS: Apple Maps has some minor differences when compared to Google Maps. The route snaps onto Google's data, not Apple's data. But that however doesn't explain the behavior as showcased above: it's a Google Maps map, with a Google Maps route. So what might be going on here? There's a few guesses to why that might be:
The first option seems unplausible, but the second guess seems really plausible as the route pictured above spans a really huge area: Google doesn't add that much detail to the route as it spans an entire country. This can be tested:
In the example above that would be a route around the Zinga area. My bet is that when you route there, the returned route will indeed snap the road. This because it is a short route, which can contain a lot of detail. |
@bramus Look like you are using overview polyline. You should use the legs |
i need your help,i am creating live tracking app using react native ,its done but polyline not travel throw road,please help me on it,how to use roads api key in react native |
Hi @tuononh, how can I use the legs? |
FYI: With version 1.7.3 you can pass a
Note that setting it to |
Thank you! |
Add option for snap to road for better polyline support. I can help with this if needed.
The text was updated successfully, but these errors were encountered: