Trying out the OlaMaps Android SDK
Note
Ola Maps v1.0.68 is being used in this project. The code implementation may change if a newer version is released
-
Clone the repo
-
Add your
CLIENT_ID
andCLIENT_SECRET
inlocal.properties
:CLIENT_ID=abc123 CLIENT_SECRET=abc123 API_KEY=abc123
-
Go to
Build
->Clean Project
-
Ensure your device has
Location
enabled -
Uninstall any existing version of the app
-
Run the app
access token
valid for 60 minutes. Implemented logic to auto-refresh token when expired or absent- Implemented some features that are not even included in official documentation
- Jump to current location with a button click
- An Info card (called HuddleMarkerView) for current location
- Choose location by search or tap on the map
- Get directions from current location to chosen destination
Note
This is an ongoing project, and I'm exploring more features available in the OlaMaps SDK
OlaMaps.Demo.mp4
Note
Map not rendering on Emulator? Try real device
Distributed under the MIT License. See LICENSE
file for more information.