I’m trying to call the API to get a route as a Polyline using points. The problem is that if I select for it to give me the points in the form of encoded points they get wrong quickly. However, when I wish to get it in latlng pairs it works great. But I want it in encoded points since it’s more efficient that way. If you aren’t understanding where I am coming from see the picture below! Untitled|592x500
As you can see, it gives a rather good line until it decides to take a left and just leave. I’ve had it working a couple of months ago but now it just quits on me. Does anyone know how I can solve this?
Solution has been found! Apparently it responded with a string where it used double backslashes ("\") instead of 1 backslash (""). Solution was just to replace “\” with “” and the problem was then solved!