Maps

Google Maps integration

To use all functions of the Google Maps integration an API Key is needed. More information about how to get an API Key and what services need to be enabled can be found here https://developers.google.com/maps/get-started

The API Key must be maintained in the file secrets/.env via the following line:

gmaps_api_key=[YOUR GOOGLE MAPS API KEY]

Additionally it must be maintained in special files for Android and iOS to be used by the google_maps_flutter package. The exact instruction can be found here https://pub.dev/packages/google_maps_flutter To set the Google Maps API Keys all at once you can just search and replace the following string within your IDE

[YOUR GOOGLE MAPS API KEY]

The functions used for the Google Maps integration are collected in the class

class LocationMapsRepository {}

This class also contains the function getCurrentLocation() to find out the current device location. This function does not require a Google Maps API Key and can be used out of the box.

Last updated