Skip to content

maxencehenneron/routeboxer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang routeboxer

This is a Golang implementation of the RouteBoxer Class from Google.

Install

go get github.com/dernise/routeboxer

Usage

You first need to initialize a RouteBoxer object with an array of coordinates [Longitude, Latitude] representing the route and the desired range.

pointSet := geo.PointSet{
	{3.0366159982599186, 50.627300916239626}, {3.0368849735327217, 50.626974944025285}
}

routeBoxer := NewRouteBoxer(1000, pointSet)

You can now run the algorithm with :

boxes := routeBoxer.Boxes()

Once the calculation are complete, you can get a GeoJSON like object

boxes.ToGeoJson()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages