Documentation ¶
Index ¶
Constants ¶
View Source
const (
// According to Wikipedia, the Earth's radius is about 6,371km
EARTH_RADIUS = 6371
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Circle ¶
func (*Circle) CircleBound ¶
type Feature ¶
type Feature struct { Type string Geometry Geometry Properties *Properties }
type Geometry ¶
Geometry is a geometric shape that can be used to verify whether Geo point is contained in there or not.
type LatLng ¶
func (*LatLng) GreatCircleDistance ¶
GreatCircleDistance: Calculates the Haversine distance between two points in kilometers. Original Implementation from: http://www.movable-type.co.uk/scripts/latlong.html
type Point ¶
func (*Point) CircleBound ¶
type Polygon ¶
type Polygon struct { Type string // contains filtered or unexported fields }
Polygon is representing a polygon line structure.
func NewPolygon ¶
NewPolygon creates a new polygon for the provided coordinates.
func (*Polygon) CircleBound ¶
type Properties ¶
type Properties struct {
Name string
}
Click to show internal directories.
Click to hide internal directories.