SHARE
TWEET

Untitled

a guest Jun 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top