/frdemo-mapbox

Service to mock the MapBox API used by the First Responder Demo

Primary LanguageJavaApache License 2.0Apache-2.0

MapBox API Mock

Service to mock the MapBox Directions API v5 used by the First Responder Demo.

The service mocks the MapBox REST endpoint /directions/v5/ using the profile mapbox/driving. It randomly returns one of 10 payload samples:

Payload Size
payload0.json 128K
payload1.json 112K
payload2.json 128K
payload3.json 136K
payload4.json 140K
payload5.json 324K
payload6.json 1.1M
payload7.json 604K
payload8.json 28K
payload9.json 460K

To use the mock, you have to use the first responder demo fork at https://github.com/hpehl/first-responder-demo and specify the MAPBOX_BASE_URL system property, when starting EAP. The value specifies the base URL of the MapBox API mock, e.g. http://localhost:9123.

The mock service is available as a container at Quay.io: quay.io/hpehl/frdemo-mapbox