Goal: Create a getLocation action and reverse geocode the location to an address.
If getAddress is true the eventParameters will also include the fields zip, city, country, street, houseNumber and address.
{
"type": "getLocation",
"params": {
"getAddress": true,
"onSuccess": "getLocationSuccess",
"onError": "getLocationError"
}
}
The getAddress parameter specifies whether the location is to be reverse geocoded to an address.