formattergeojson

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FormatTime = "15:04"

Variables

This section is empty.

Functions

func FormatGeoJSON

func FormatGeoJSON(legs *[]formatterlegs.RouteLeg) *[]GeoJSONFeature

Types

type GeoJSONFeature

type GeoJSONFeature struct {
	Type       string            `json:"type"`
	Properties map[string]string `json:"properties,omitempty"`
	Geometry   any               `json:"geometry,omitempty"` // E.g Either GeoJSONGeometry{LineString,Point}
}

type GeoJSONGeometryLineString

type GeoJSONGeometryLineString struct {
	Type        string       `json:"type"` // Always set to "LineString"
	Coordinates [][2]float64 `json:"coordinates"`
}

type GeoJSONGeometryPoint

type GeoJSONGeometryPoint struct {
	Type        string     `json:"type"` // Always set to "Point"
	Coordinates [2]float64 `json:"coordinates"`
}

Jump to

Keyboard shortcuts

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