# Location (Life360)

[Life360](https://www.life360.com/) is a location sharing application for tracking families.&#x20;

### Getting Started

* First, install and configure the Life360 mobile app on one or more devices ([Android](https://play.google.com/store/apps/details?id=com.life360.android.safetymapd\&hl=en_US\&gl=US) / [iOS](https://apps.apple.com/us/app/life360-find-family-friends/id384830320))
* Next, install the "[Life360+](https://community.hubitat.com/t/release-life360/118544)" Hubitat app/driver and configure it
* Finally, make sure all of the Life360 devices which are created by the Life360+ driver are checked in [MakerAPI](https://joe-page-software.gitbook.io/hubitat-dashboard/setup/install-configure)

### Dashboard Tile

* The dashboard tile shows the user's location on a static Google Map image\
  ![](https://359348802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk-IVGVr8G2SBHju4g7%2Fuploads%2FzajJEm72x3pcJhI1O0n6%2Fimage.png?alt=media\&token=7f57b803-8aa1-430e-9030-1fcbd1fa16b9)
* clicking on the tile shows an embedded Google Map
* ![](https://359348802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk-IVGVr8G2SBHju4g7%2Fuploads%2F78zGWfgQetRb0tQY8VRw%2F20230607-1038AM-1.png?alt=media\&token=8f7adb8b-be1d-4971-bc33-206567a4054d)
  * NOTE: any other Life360 or OwnTracks devices that you have will also be displayed on the map as well

### Widget

* You can also create a homescreen widget out of any Life360 device

![](https://359348802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk-IVGVr8G2SBHju4g7%2Fuploads%2FaVbSjzjRi6w71IUCpyMx%2F20230111-1609PM-1.png?alt=media\&token=e3c6ebce-82b3-4f34-8e9f-9a8ca5dd78fb)

### Google Maps API Key

* Google provides developers an API key to both create static maps as well as use embedded maps. There's a limit however to how many maps can be created every month - once that limit is reached the API will stop working for the rest of the month.
* Because of this, if you either notice the maps not working \*or\* would like to get your own API key just to use for you dashboard, I added a way to set it in the dashboard.
* long-click on any Life360 or Owntracks device and hit Edit
* Click on Map Options
* Click on Google Maps API Key and enter your custom maps API key
  * NOTE: this is for the static maps.. I'll add a way to do this for the embedded maps too in a future version
* ![](https://359348802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk-IVGVr8G2SBHju4g7%2Fuploads%2FY8mTnsj4srowgmSMdt0l%2Fimage.png?alt=media\&token=be399187-5217-459b-af1e-47e2e9693a0d)![](https://359348802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk-IVGVr8G2SBHju4g7%2Fuploads%2FgkWUW4h3kr5xtlLsdS2Q%2Fimage.png?alt=media\&token=6d6e489a-50b2-4046-aab3-0a784ff023c4)

### Creating a Google Maps API Key

There's several steps involved but I found some guides:

{% embed url="<https://setcompass.com/How-to-Get-Google-Maps-API-Key-Guide.htm>" %}

{% embed url="<https://yoast.com/help/generate-set-google-maps-api-key/>" %}
