Location to> Attribute

(Anish Duggal) #1

Is there anyway to assign the location City info to the user as an attribute?

also unsure about why the city Calgary is spelled wrong is this a FB thing?

Thanks

(Karen Barker) #2

Hi Anish,

To get the city name, you would need to use a webhook to an alternative service such as the Google Maps Geocoding API. You’ll need to do the reverse geocoding request as follows:
https://maps.googleapis.com/maps/api/geocode/json?latlng=LATITUDE,LONGITUDE&key=YOUR_API_KEY

The mis-spelling is a facebook error as we have no control over what is sent back to us to display.