Skip to content

Instantly share code, notes, and snippets.

@shuma
Created July 21, 2017 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuma/2ef2ae41188b5dacb77d46a5d9df6de7 to your computer and use it in GitHub Desktop.
Save shuma/2ef2ae41188b5dacb77d46a5d9df6de7 to your computer and use it in GitHub Desktop.
success(pos) {
reverseGeocoding(`${pos.coords.latitude},${pos.coords.longitude}`)
.then((result) => this.getFormattedAddress(result.results[0]))
.then((address) => {
this.props.geoLocation(address);
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment