Ruslan Bairamovi
Ruslan Bairamovi

Reputation: 458

React get address from Google Maps ? #react

I am Junior React Developer. In my new project there is something like this. (marked with red rectangle) Is there any way to get address with this way ? User open Google Maps pin the location and address text shows up ?

enter image description here

Upvotes: 1

Views: 1710

Answers (1)

Tiyclem
Tiyclem

Reputation: 51

In first save the lat and the lng : https://developers.google.com/maps/documentation/javascript/examples/event-click-latlng

And after with GeoCoding convert the lat and the lng to an address : https://developers.google.com/maps/documentation/geocoding/overview

Upvotes: 1

Related Questions