Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. let requested_address
  2. googleClient.geocode({address: requested_address})
  3. .asPromise()
  4. .then((response) => {
  5. // Call to another function passing the location object from response
  6. showLocations(response.json.results[0].geometry.location)
  7. })
  8. .catch((err) => {
  9. // print error message in screen
  10. $('.results-message').show().html(err.json.error_message)
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement