Skip to content

pufferffish/valhalla-go

Repository files navigation

Valhalla for Go

Test and build bindings

This repo simply offers Go bindings to the Valhalla project.

Usage

The library offer functions that directly take JSON string request and return JSON string response. Example code on how to use the library can be found in the test units.

Note that the library depends on C++ bindings. If you have the Nix package manager you can simply build the bindings as such:

git clone https://github.com/vandreltd/valhalla-go
cd valhalla-go
nix-build # the shared library will be in result/lib/
LD_LIBRARY_PATH=./result/lib go test -v # build and run the test units

If you do not wish the build the library yourself, you can grab a pre-built binary in the CI Artifacts.

A preprocessed tiles file of the entire world (2023 Jan) can be found here.

License

valhalla-go is licensed with ISC, see LICENSE.

About

Go bindings to valhalla

Resources

License

Stars

Watchers

Forks

Packages

No packages published