internal_data

package
v0.0.0-...-670d40f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMapDocsToGeoJSON

func ConvertMapDocsToGeoJSON(docs []map[string]interface{}) ([]byte, error)

func PostGeoJsonHelpsToDQ

func PostGeoJsonHelpsToDQ(apiKey string, datasetIdentifier string, helps []map[string]interface{}) error

func PostJsonHelpsToDQ

func PostJsonHelpsToDQ(apiKey string, datasetIdentifier string, filePath string) error

Types

type GeoJSONFeature

type GeoJSONFeature struct {
	Type       string                 `json:"type"`
	Geometry   Geometry               `json:"geometry"`
	Properties map[string]interface{} `json:"properties"`
}

type GeoJSONFeatureCollection

type GeoJSONFeatureCollection struct {
	Type     string           `json:"type"`
	Features []GeoJSONFeature `json:"features"`
}

type Geometry

type Geometry struct {
	Type        string        `json:"type"`
	Coordinates [][][]float64 `json:"coordinates"` // Polygon
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL