Skip to content
/ bbox Public

Go library to get the bounding box from coordinates in floating-point or E7 representation

Notifications You must be signed in to change notification settings

lbrun25/bbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bbox

This is a Go library to get the bounding box from coordinates in floating-point or E7 representation.

Install

go get github.com/lbrun25/bbox

Usage

package main

import (
	"github.com/lbrun25/bbox"
)

func main() {
	coordinates := []bbox.CoordinateFloat{
		{
			Lat: 48.581635,
			Lon: 7.744521,
		},
		{
			Lat: 48.578911,
			Lon: 7.748500,
		},
		{
			Lat: 48.581728,
			Lon: 7.764263,
		},
		{
			Lat: 48.584880,
			Lon: 7.762572,
		},
		{
			Lat: 48.581851,
			Lon: 7.750945,
		},
	}
	boundingBox, err := bbox.GetFromFloatCoordinates(coordinates)
}

About

Go library to get the bounding box from coordinates in floating-point or E7 representation

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages