https://github.com/mizy/geojson-decoder
geojson 压缩/解压缩工具,使用Mapbox算法压缩path
https://github.com/mizy/geojson-decoder
Last synced: 6 months ago
JSON representation
geojson 压缩/解压缩工具,使用Mapbox算法压缩path
- Host: GitHub
- URL: https://github.com/mizy/geojson-decoder
- Owner: mizy
- License: mit
- Created: 2020-04-22T02:29:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T14:09:20.000Z (over 2 years ago)
- Last Synced: 2025-03-20T09:11:37.403Z (7 months ago)
- Language: HTML
- Homepage:
- Size: 305 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# geojson-decoder 解压/压缩工具
# api
```
import encoder from 'GeoJSONDecoder';
encoder.encode( {
"type": "MultiLineString",
"coordinates": [
[
[100.0, 0.0],
[101.0, 1.0]
],
[
[102.0, 2.0],
[103.0, 3.0]
]
]
})
encoder.decode({})
```# 注意