Skip to content

Instantly share code, notes, and snippets.

@R4CHI7
Created May 24, 2016 19:50
Show Gist options
  • Save R4CHI7/d5899ba44bc2116f64910425e6227e5d to your computer and use it in GitHub Desktop.
Save R4CHI7/d5899ba44bc2116f64910425e6227e5d to your computer and use it in GitHub Desktop.
Simple go program which reverse geocodes a set of coordinates.
package main
import (
"fmt"
"github.com/kellydunn/golang-geo"
)
func main() {
pt := geo.NewPoint(28.6441636, 77.2060303)
geocoder := geo.GoogleGeocoder{}
fmt.Println(geocoder.ReverseGeocode(pt))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment