Google has a Rest Service for getting address by geolocation: https://developers.google.com/maps/do...
You would need to create Rest Service with the following parameters:
URL: http://maps.googleapis.com/maps/api/g...
Request parameters:
"latlng"
"sensor", value = true
To get response parameters, on "Test" tab enter the value latlng=40.714224,-73.961452 and click "Test". Service will send data back. Then click "Automatically Create Service Response".
To make the service work on location page add it to page and create the following mapping:
Click "Add JS" in front of request parameter latlng and paste the following code:
codereturn localStorage.getItem('lat') + ',' + localStorage.getItem('lng');/code
Mapping for response parameters is the following:
The created service should be invoked only after Geolocation service. On Success event add action "Invoke service" and invoke the service.