Closed freenerd closed 9 years ago
@freenerd Requests to
Gives me a 401: {"message":"Invalid Access Token"}
&geometry
@freenerd :+1:
@freenerd sample polyline response
{"geometry":"m~keiAjlj|qCkI@iAAqB@eE@yAAqOBeH@eL@gWFqB?mFOc@BqDAaDIyCA}ACuC@{MAqH@wJ@aL@qKB_K@eHAo@@sBAuD@cA?oI?uJ?eK?cK?oK?qK?oNFoC?iD@kECsLD{FBmJ?{J?]A?aa@qSRkDD@wQ"}
Which seems invalid according to https://developers.google.com/maps/documentation/utilities/polylineutility
Decoding using mapbox-polyline I get http://pastebin.com/sSEvRw08
Everything works ok without the polyline request
@planemad Try polyline.decode(polyline, 6)
By default, out polyline lib is not compatible with google's format. Precision is 5, instead of google's 6.
Thanks @aaronlidman this one was quite a :ferris_wheel:
Polylines will be faster to transfer, since they are way smaller. You can request them via
?geometry=polyline
.