Skip to content

Instantly share code, notes, and snippets.

@jamigibbs
Last active June 19, 2018 00:58
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 jamigibbs/3fe01d559a6e6e1059cf33a431f55efa to your computer and use it in GitHub Desktop.
Save jamigibbs/3fe01d559a6e6e1059cf33a431f55efa to your computer and use it in GitHub Desktop.
a) getNearestDivvyStation
export const getNearestDivvyStation = (lat, lng) => {
const url = `${GOOGLE_PLACES_URL}?location=${lat},${lng}&radius=1000&type=point_of_interest&keyword=divvy&key=${API_KEY}`
return async (dispatch) => {
const { data } = await axios.get(url)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment