Skip to content

tombombadilom/MapBoxShowDirection

 
 

Repository files navigation

MapBoxShowDirection

Exemple of MapBox Direction with React Native

yarn

cd ios && pod install

cd ..

yarn start

What you need to add :

const accessToken = 'YOUR-MAPBOX-KEY-HERE'; // Put your Key 
...

// Coordinates
const UserLocation = [2.374400000000037, 48.9052]; // [longitude, latitude] // change by what you want thoses are my default test coordinate
const DestinationLocation = [2.3488, 48.8534]; // [longitude, latitude] // change by what you want thoses are my default test coordinate

const StartLocation = UserLocation; // change if u need by an array of coords
const CenterCoordinate = UserLocation; // change if u need by an array of coords

About

Exemple of MapBox Direction with React Native

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.4%
  • Objective-C 12.9%
  • Ruby 8.7%
  • Java 8.1%
  • Starlark 5.9%