Paolo Pini Member Licensed User Longtime User Sep 26, 2017 #1 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®ion=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 8.2 KB · Views: 841 Last edited: Sep 26, 2017
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®ion=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?
Paolo Pini Member Licensed User Longtime User Sep 26, 2017 #2 Solved!, I loaded the wrong points list. The right is Code: Copy 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. Upvote 0
Solved!, I loaded the wrong points list. The right is Code: Copy 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.