Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let requested_address
- googleClient.geocode({address: requested_address})
- .asPromise()
- .then((response) => {
- // Call to another function passing the location object from response
- showLocations(response.json.results[0].geometry.location)
- })
- .catch((err) => {
- // print error message in screen
- $('.results-message').show().html(err.json.error_message)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement