measure-matrix

command
v0.23.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

Nextmv measure matrix input generation for the routing template

measure-matrix serves as an input generator for the routing-matrix-input app. The generated input data includes matrices for distance and travel time using OSRM. You can simply exchange the client for one of our other matrix providers: Routingkit, Google and Here.

To run both apps combined, you should look at two things:

  • add the OSRM server to main.go (or use a different provider of your choice)
  • use locations in the input data in main.go that can be consumed by your OSRM server.

Run the command below to see if everything works as expected:

nextmv sdk run .

One file should have been created: routing-input.json. This file can be used as a direct input for the routing-matrix-input app.

Next steps

Documentation

Overview

package main holds the implementation of the measure generation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL