geojson

package
v0.0.0-...-ea6506d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const EarthRadiusM float64 = 6378137.0

EarthRadiusM is the approximate radius of the earth in meters

Variables

View Source
var DefaultSegments float64 = 20

DefaultSegments controls the number of segments output in the geometry created by CircleGeom.

Functions

func CircleGeom

func CircleGeom(cLat, cLng, radiusM float64) string

CircleGeom outputs a GeoJSON geometry representing a circle of radius radiusM meters centered at (cLat, cLng)

func Haversine

func Haversine(lonFrom float64, latFrom float64, lonTo float64, latTo float64) (distanceM float64)

Haversine computes the distance in meters across the world's surface between two lat/lng coordinates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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