You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
The implementation relies on the behavior of round which differs between python 2.7 and 3.x
from mapbox.encoding import encode_waypoints
features = [{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [1, 0]
},
"properties": {}}]
print(encode_waypoints(features))
gives us
1,0 for Python 3
1.0,0.0 for Python 2
This should not affect the value returned from the Mapbox SDK but it means that the precise URL is not deterministic - which might affect caching and tests.
The text was updated successfully, but these errors were encountered:
@critical-path FYI this was the bug causing the directions CLI tests to fail on python 2.7 in mapbox/mapbox-cli-py#122. I'm going to account for it on the CLI side
perrygeo
added a commit
to mapbox/mapbox-cli-py
that referenced
this issue
May 31, 2018
The implementation relies on the behavior of
round
which differs between python 2.7 and 3.xgives us
1,0
for Python 31.0,0.0
for Python 2This should not affect the value returned from the Mapbox SDK but it means that the precise URL is not deterministic - which might affect caching and tests.
The text was updated successfully, but these errors were encountered: