Create a .env file and add keys listed below to the file.
- GOOGLE_MAPS_API_KEY: Enable Directions, Distance Matrix and Places APIs on Google Cloud. Create an API key and use it here.
- Install npm dependencies by running
$ yarn
command.
- Enable Maps SDK for iOS API.
- Replace
[YOUR_API_KEY]
placeholder with your api key inAppDelegate.mm
file. - Install iOS dependencies by running
$ npx pod-install
command. - Run
$ yarn ios
command to run the app on iPhone 14 Pro Max simulator. You can edit ios script on package.json file to run the app another iPhone model.
- Enable Maps SDK for Android API.
- Replace
[YOUR_API_KEY]
placeholder with your api key inAndroidManifest.xml
file. - Run
$ yarn android
command to run the app on an Android emulator. (MAKE SURE YOUR DEVICE OR EMULATOR HAS GOOGLE PLAY SERVICES INSTALLED)