Skip to content

matbragan/geocoord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geocoord

Usage

Initialize your module

go mod init example.com/demo

Get the geocoord package

go get github.com/matbragan/geocoord

Example of usage

package main

import (
    "fmt"

    "github.com/matbragan/geocoord"
)

func main() {
    postalCode := "87109"
    coordinates, err := geocoord.GetCoordinates(postalCode)
    
    if err != nil {
        fmt.Printf("Error: %v/n", err)
        return
    }
    
    fmt.Printf("Latitude: %f, Longitude: %f\n", coordinates.Latitude, coordinates.Longitude)
}

Documentation

You can access the full documentation here:
GoDoc

About

GoLang package to get coordinates by address

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages