Skip to content

MChehab94/Google-Maps-Location-Demo

Repository files navigation

This is a simple demo that shows how to use Google Maps and display user's location on the map.
The code from the LocationHandler repo is used to easily retrieve the location (including the entire flow and proper handling)
There are two modules:

  • app: Java implementation
  • kotlin: Kotlin implementation

A thorough explanation can be found in the post here.
NOTE: In order to use this code, you need to create an API key for Google Maps from https://console.developers.google.com. Once you generate the key, you need to add it in google_maps_api_key.xml located res -> values