https://github.com/conormag/firebase-geojson
An RFC7946-compliant library to interchangeably convert between GeoJSON objects and Firestore documents.
https://github.com/conormag/firebase-geojson
Last synced: 5 months ago
JSON representation
An RFC7946-compliant library to interchangeably convert between GeoJSON objects and Firestore documents.
- Host: GitHub
- URL: https://github.com/conormag/firebase-geojson
- Owner: conormag
- License: gpl-3.0
- Created: 2020-06-23T18:08:38.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-02T21:53:13.000Z (about 4 years ago)
- Last Synced: 2025-12-29T21:36:21.540Z (7 months ago)
- Language: JavaScript
- Size: 50.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# firebase-geojson
An [RFC7946](https://tools.ietf.org/html/rfc7946)-compliant library to interchangeably convert between GeoJSON objects and Firestore documents.
## Functions
### geoToDoc()
```geoToDoc(GeoJsonObj, options)```
`options = {precision: }`
-precision (optional) - number of decimal places to trim coordinate values to.