question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Precision may x10 coordinates

See original GitHub issue

@jfirebaugh @jlivni reports we may be x10’ing coordinates in the Directions API polyline encoding. Might this be the factor bit here? https://github.com/mapbox/polyline/blob/master/src/polyline.js#L77

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
areichmancommented, Dec 30, 2014

I just came across this issue myself and after some digging finally found the answer here about the precision value. It might be helpful for others as well to show the precision in an example on the main page to highlight the difference between Mapbox Directions and Google Maps.

0reactions
jlivnicommented, Apr 29, 2014

Derp you are absolutely correct, sorry about that. I was using some buggy python code to test it at first, without actually thinking; should have stayed on vacation 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Choosing the resolution and domain of a low-precision spatial ...
About x,y resolution and domain. A low-precision geodatabase stores coordinates as positive 4-byte integers that have a maximum value of 2,147,483,647. It may ......
Read more >
Understanding Coordinate Management in the Geodatabase
Explain how feature coordinates for vector-based geographic data are stored and managed within the geodatabase. 3. Discuss data migration ...
Read more >
OpenGL texture coordinates and the precision of small floats
OpenGL likes things in this range, and I'm fine specifying coordinates this way, but I'm concerned when I start using larger textures (say...
Read more >
Datums - Map Coordinate Reference Frames
The basic fact is: the coordinates of all locations on the earth are on datums. At high accuracy the coordinates of a point,...
Read more >
Ten Minute Block Coordinate Precision and Other Location ...
The 10-minute block highlighted in the image would have a Decimal Degree value of 39.08333 -76.08333 and a truncated Degrees, Minutes, Seconds (DMS)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found