/map-route-demo

A map router which provides functions like location pickup and routing.

Primary LanguageJavaScriptMIT LicenseMIT

map-route-demo

A map router which provides functions like location pickup and routing.

Usage

STEP 1: Perform yarn install or npm install

STEP 2: Follow this link to apply for a new access token: https://docs.mapbox.com/help/tutorials/get-started-tokens-api/. then fill it into .env

STEP 3: Perform yarn start or npm start

STEP 4: Open https://localhost:3000 to view it in the browser. (Please accept the risk and continue)

Test

Perform yarn test

Build

Perform yarn build or npm run build, ./build would be generated for production deployment.

Demo

Succeed:

succeed

Internal Server Error:

Internal Server Error

Location not accessible by car:

Location not accessible by car

Succeed - Mobile:

succeed

Internal Server Error - Mobile:

Internal Server Error

Location not accessible by car - Mobile:

Location not accessible by car

Author

Messi Li

licaomeng@gmail.com