'Is there a way to get Google Maps Shared Locations via API?

Google Maps has a wonderful Contact Location Sharing feature. Does anyone know if this data is available programmatically? It would would be helpful to have access to mine and my wife's location for things like Home Automation or scripting



Solution 1:[1]

Shared locations are not available via Google Maps API at the moment. There is a feature request in Google issue tracker for this:

https://issuetracker.google.com/issues/62938530

You can add star to this feature request to express your interest and subscribe to future notifications from Google.

Solution 2:[2]

Unofficial Python library for this that's based on session cookies. Who knows how long that'll last:

https://github.com/costastf/locationsharinglib

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 xomena
Solution 2 xd1936