Skip to content

duohedron/go-geotools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Geotools

Build Status License: GPL v3

Go tools for working with geolocation coordinates

Installation

go get github.com/duohedron/go-geolocation

Usage

package main

import (
	"fmt"
	"github.com/duohedron/go-geotools"
)

func main() {
	// Distance between two coordinates in kilometers
	fmt.Println(geotools.Distance(0, 0, 47, 19)) // 5548.817065746805
}

This code was ported to Go directly from http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates, and is owned by Jan Philip Matuschek.

About

Go tools for working with geolocation coordinates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages