API Google Maps doesn't return enough of step

前端 未结 1 835
渐次进展
渐次进展 2020-12-07 05:05

I\'m making an app with Xamarin.Forms.Maps and then, I need to get all of the steps between two \"place id\" to make my own polyline. However, when I\'m making my request, I

相关标签:
1条回答
  • Are you using the polyline results in each driving step?

    I used your example and got 31 start_location that each contain Encoded Polylines for drawing that path on the map.

    The "Take the exit toward Paris-Centre Porte de Bercy" step results in:

    "polyline": {
       "points": "mn_iHmxqM@[?WA_@Ck@CeAAMGcAEi@Gc@Ke@GUI[IYGSIMIKGECAMIMEA?EAA?A?K?I@A?C?IBE@C@?@C@GBOHEHGJIVIX_@j@"
     },
    

    Decoded that is:

    The "Take the exit on the left onto Bd Périphérique" step results in 91 points, etc...

    There are hundreds and hundreds of locations points within the results, you just have to decode the locations of each driving step and plot them:

    Google's Interactive Poly Line Utility

    0 讨论(0)
提交回复
热议问题