I have geopoint fields in firestore. I want to be able to convert the geopoint back to latlng. From firestore documentation, the .getLatitude() and getLongitude() should do the trick. But this doesn't seem to work with Python. I keep getting the error:
print(geopoint.getLatitude())
AttributeError: 'GeoPoint' object has no attribute 'getLatitude'
How can I get the geopoint values in Python?
geopoint = field['location']
print(geopoint.getLatitude())
print(geopoint.getLongitude())