Update the location's coordinates[ Edited ]
August 2016 - last edited August 2016 by Terry W
I would like to change the coordinates of a location by creating a patch, but I get this error:
"message": "Request contains an invalid argument.",
"message": "field is read only"
Is there a way to change the coordinates?
Re: Update the location's coordinates
Hi @Andrei C,
The latlng field for user-provided latitude and longitude is read-only and cannot be updated. This field is ignored if the provided address geocodes successfully when creating a location. This field is only present if the user-provided latlng value in a LatLng object was accepted when creating a new location via the API, or latlng value was updated through the Google My Business UI. You can drop a pin for your business location via the UI to provide the correct latitude and longitude coordinates. Please note that your edits may be reviewed for quality before being published.
If you have already created the location and you are sending a PATCH request to update the location via the API, please use a fieldMask and confirm that the fieldMask does not include address and latlng. You should provide latitude and longitude coordinates or fix the geocode error for your business location through the UI.