GPS with customized routes

Make them as a list, Something like:

1 Like

I had a similar problem, but I’m not on the notebook. More or less that.

1 Like

putting it that way
blocks (1)

return me
image

Look at the blocks above again, it should be list of pairs

1 Like

Try my example ?

Your pairs should be like this :
[
{ lat: 37.772, lng: -122.214 },
{ lat: 21.291, lng: -157.821 },
{ lat: -18.142, lng: 178.431 },
{ lat: -27.467, lng: 153.027 },
]
In my case I returned a Json where the lat and long pairs existed and I assembled a string as shown above.
Because the longitudes and latitudes are in a table in my database. In this table I have this latitude and longitude information for each person registered. So on the return Json, I took these pairs and assembled the pairs to show the markers.

2 Likes

I got it ! I just wasn’t putting it in the correct format as you said lat / long

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.