Comments (2)
New to this repo, but I just noticed that decoding a route with different values of the precision param does not make a different. For my example, it will output the same number of waypoints regardless of the precision being 1 or 50 or anywhere in between. Am I not using this API correctly?
The precision option is akin to how many decimal places there are for each coordinate, not how many coordinates in a linestring. It sounds like you want to do line simplification or line generalisation before passing to polyline to encode.
from polyline.
Got it! Thanks for the response @andrewharvey!
from polyline.
Related Issues (20)
- timestamp support HOT 3
- Add Support for GeoJSON FeatureCollection
- Add license to package.json HOT 2
- Wrong decoding of polyline HOT 2
- Meow package as dependency HOT 1
- Mapbox static API cannot handle polylines with question marks HOT 6
- npm audit issue (meow > yargs-parser) HOT 1
- Warning - produces different result if coords are [x ,y, something] HOT 2
- polyline.encore return '???????' HOT 1
- Parsing the encode result is broken in CLI HOT 1
- make a breaking change to swap to lon/lat order HOT 5
- Possibility to choose between parenthesis or brackets '(' and '['
- precision parsing bug, i think?
- lots of sub dependencies
- Passing many latlong resulting ?????? in encoded string HOT 1
- Precision parsing is wrong in some cases HOT 3
- Should upgrade the meow to latest version to fix the security issue CVE-2022-25883?
- encode Z Dimension
- license field still missing in npmjs released @mapbox/[email protected] package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polyline.