Android Question SOLVED! -Decode Map JSON Polyline problem.

Paolo Pini

Member
Licensed User
Longtime User
Hi all,
I try to receive polyline list to overlay path from 2 point on my map.
I follow this thread:
https://www.b4x.com/android/forum/threads/mapsdecodepolyline.31499/

then I call the service with this string:
https://maps.googleapis.com/maps/ap...,11.230372&sensor=false&region=it&key=<MyKey>

The return data are good, and I can verifiy it using this service:
https://www.b4x.com:51041/json/index.html

where can I see all my path correct, but when i plot on my map the path are very poor as it have lost a lot of points of reference.



Somebody have a working sample?
 

Attachments

  • 2017-09-26_131509.png
    2017-09-26_131509.png
    8.2 KB · Views: 475
Last edited:

Paolo Pini

Member
Licensed User
Longtime User
Solved!,
I loaded the wrong points list. The right is
B4X:
Dim PolyPoints As List : PolyPoints.Initialize
Dim Polyline As Map = colsteps.Get("polyline")
Dim Points1 As String = Polyline.Get("points")
          
Log("Points1: " & Points1)
PolyPoints.Add(Points1)

In the code snapped from the service cited above.
 
  • Like
Reactions: eps
Upvote 0
Top