obbzung
September 1, 2024, 10:36am
1
Dear Weweb Team,
I’m using Mapbox plugin with draggable pin.
How can I retrieve address information from a pin location when it’s moved?
The scenario is when a user moves a pin to location their address. I would like it to show an address information.
The address information woule be something like this.
“189 หมู่ที่ 2 Ratchaphruek Rd, Bang Khun Kong, Bang Kruai District, Nonthaburi 11130”
Thank you in advance.
Chayapol
I think you’ll need to call the api for that
You will need to perform reverse geocoding, check this page: Geocoding API | API Docs | Mapbox
2 Likes
obbzung
September 12, 2024, 5:56pm
4
Thank you! That’s what I’m looking for.
Reverse geocoding
https://api.mapbox.com/search/geocode/v6/reverse?longitude={longitude}&latitude={latitude}
The reverse geocoding query type allows you to look up a pair of coordinates and returns the geographic features there, including a standardized address or place and full geographic context.
1 Like