Skip to content

Google map integration in React with readable address fetching

Notifications You must be signed in to change notification settings

Joker-Bat/google-map-react-with-address

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google map integration for React

!!! Make sure to enter your Google map API key in apiKey.js file, and also activate the places service when generating a API key.


Getting started

Run in local machine

Clone this repo into your machine and run

  npm install && npm run start

Run in Codesandbox

Link to Codesandbox Google-Map-React


Packages used

Features

Current location from browser

  • At initial load we will get current location from browser using geolocation API. ( Only If we allow the location permission )

Get address details as we drag

  • Based on center position of map we will get a readable address details on bottom of map.

Search for places in searchbar

  • In top searchbar search for places, if you choose one location then map will move to that location, and we will get that places address.

Custom Current location button

  • There is a custom current location button to move back to your current location

This can be useful to someone who is getting started with google map integration on react


If you find any issue or have suggestion make a pull request 😉

About

Google map integration in React with readable address fetching

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published