Google Maps API Version difference

后端 未结 9 1651
野趣味
野趣味 2020-11-28 23:22

I\'m trying to show route between two places, I want to used Google Places API V3 for route steps between two points.


Before I was using Old Google Maps API, a

9条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 00:06

    What's new in Google Map API v3?
    Google Maps Directions API v3 for Android provide routes in the Encoded Polyline Algorithm Format.

    What we must have to do?
    We must have to decode this Polyline for showing exact Map

    How we decode this encoded Polyline provided by Google Directions API v3?
    Please Refer these three links to more clear with encoded Polyline returns from the Google Maps Directions API v3

    • Decoding polylines from google maps direction api with java
    • Encoding polylines for Google Maps
    • The encoding algorithm for the levels string

    How we can resolve problem in above question?
    Please refer these three answer links, that solves your problem :

    • Android - Draw route map between two geopoints
    • https://stackoverflow.com/a/10268114/1472665
    • https://stackoverflow.com/a/11357351/1494309

提交回复
热议问题