This is a simple project to make a simple react-native application that can get directions from your current location to your destination. This project uses React Native, Google Places API Web Service, Google Maps Directions API, Google Maps Android API.
- Search autocomplete destination.
- Get directions from your current location to your destination.
- Make a destination by touch on map (create a marker).
These instructions will get you a copy of the project up and running on your local machine.
- Get your API key Google Maps Android API and add key follow Step 2 in Google guides.
- Get your API key Google Places API Web Service.
- Get your API key Google Maps Directions API.
- Add your API keys in project by modifies in src/components/app.js.
const MapAPIKey = "your Google Maps Directions API key";
const PlaceAPIKey = "your Google Places API key";
npm install
or
yarn install
- react-native-google-places-autocomplete - The package for search autocomplete feature.
- react-native-maps - The package for map feature.
- Huynh Quang Thai - thaihuynhquang