Versions in this module Expand all Collapse all v1 v1.0.1 Nov 15, 2022 v1.0.0 Nov 15, 2022 Changes in this version + type Address struct + City string + Country string + CountryCode string + County string + Postcode string + Road string + State string + Suburb string + Tourism string + type Feature struct + BoundingBox []float64 + CRS map[string]interface{} + Geometry *Geometry + ID interface{} + Properties Properties + Type string + func NewCollectionFeature(geometries ...*Geometry) *Feature + func NewFeature(geometry *Geometry) *Feature + func NewLineStringFeature(coordinates [][]float64) *Feature + func NewMultiLineStringFeature(lines ...[][]float64) *Feature + func NewMultiPointFeature(coordinates ...[]float64) *Feature + func NewMultiPolygonFeature(polygons ...[][][]float64) *Feature + func NewPointFeature(coordinate []float64) *Feature + func NewPolygonFeature(polygon [][][]float64) *Feature + func UnmarshalFeature(data []byte) (*Feature, error) + func (f Feature) MarshalJSON() ([]byte, error) + type FeatureCollection struct + BoundingBox []float64 + CRS map[string]interface{} + Features []*Feature + Type string + func NewFeatureCollection() *FeatureCollection + func UnmarshalFeatureCollection(data []byte) (*FeatureCollection, error) + func (fc *FeatureCollection) AddFeature(feature *Feature) *FeatureCollection + func (fc FeatureCollection) MarshalJSON() ([]byte, error) + type Geometry struct + BoundingBox []float64 + CRS map[string]interface{} + Geometries []*Geometry + LineString [][]float64 + MultiLineString [][][]float64 + MultiPoint [][]float64 + MultiPolygon [][][][]float64 + Point []float64 + Polygon [][][]float64 + Type GeometryType + func NewCollectionGeometry(geometries ...*Geometry) *Geometry + func NewLineStringGeometry(coordinates [][]float64) *Geometry + func NewMultiLineStringGeometry(lines ...[][]float64) *Geometry + func NewMultiPointGeometry(coordinates ...[]float64) *Geometry + func NewMultiPolygonGeometry(polygons ...[][][]float64) *Geometry + func NewPointGeometry(coordinate []float64) *Geometry + func NewPolygonGeometry(polygon [][][]float64) *Geometry + func UnmarshalGeometry(data []byte) (*Geometry, error) + func (g *Geometry) IsCollection() bool + func (g *Geometry) IsLineString() bool + func (g *Geometry) IsMultiLineString() bool + func (g *Geometry) IsMultiPoint() bool + func (g *Geometry) IsMultiPolygon() bool + func (g *Geometry) IsPoint() bool + func (g *Geometry) IsPolygon() bool + func (g *Geometry) Scan(value interface{}) error + func (g *Geometry) UnmarshalJSON(data []byte) error + func (g *Geometry) Value() (driver.Value, error) + func (g Geometry) MarshalJSON() ([]byte, error) + type GeometryType string + const GeometryCollection + const GeometryLineString + const GeometryMultiLineString + const GeometryMultiPoint + const GeometryMultiPolygon + const GeometryPoint + const GeometryPolygon + type Properties struct + Address *Address + AddressType *string + Category string + DisplayName string + Icon *string + Importance float64 + Name *string + OsmID int + OsmType string + PlaceID int + PlaceRank int + Type string