Rallista / ValhallaAndroidPOC

A poc/playground app to figure out a how to properly produce a trimmed down offline route generator on android
2 stars 1 forks source link

Valhalla Mobile Build POC

[!IMPORTANT]
Archived! https://github.com/Rallista/valhalla-mobile publishes all of this functionality as an android library.

Setup

git submodule update --init --recursive

# Build 
./build_protoc_local.sh
./build_wrapper.sh

# Move the wrapper library to the right location for JNI
cp build/arm64-v8a/wrapper/wrapper/libvalhalla_wrapper.so valhalla/src/main/jniLibs/arm64-v8a

Using the demo app

  1. Copy your valhalla.json, tiles tar file and admins.sqlite to the valhalla/src/main/assets to use the defualt FileUtils behavior. See
  1. Ensure the route request includes lat-longs within your tile's bounding box.
  2. Tap make route.

References