Registry /
serialization / whosonfirst-go-whosonfirst-geojson-v2
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
geojson
✓ github.com/whosonfirst/go-whosonfirst-geojson-v2
Unmarshal a GeoJSON feature and print its name.
package main
import (
"fmt"
"github.com/whosonfirst/go-whosonfirst-geojson-v2"
)
func main() {
feature, err := geojson.UnmarshalFeature([]byte(`{"type":"Feature","properties":{"name":"test"}}`))
if err != nil {
panic(err)
}
fmt.Println(feature.Name())
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.16.4latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.