This macro integrates geocoding, reverse geocoding, and autocomplete address functionality using the Geoapify Maps API (Blue: Input, Green: Output):
Geocoding Example
Address | City | Zip | State | Formatted_Address | Lat | Lng | Confidence |
R BRIGADEIRO LUIS ANTONIO 1114 AP 32 | SAO PAULO | 1318001 | SP | Condomínio Edifício Ana Cândida - Av. Brigadeiro Luís Antônio, 1114 - 32 - Bela Vista, São Paulo - SP, 01318-001, Brazil | -23.5591921 | -46.6424283 | High |
null | null | null | SP | State of São Paulo, Brazil | -21.2922457 | -50.3428431 | Low |
Reverse Geocoding Example
Lat | Lng | Formatted_Address |
-21.2922 | -50.3428 | R. Saudades, 625 - Centro, Birigui - SP, 16200, Brazil |
-23.4726 | -47.4234 | Evolution Boa Vista - Av. Antonio Bardella, 1620 - Boa Vista, Sorocaba - SP, 18085-852, Brazil |
*If you don't have a Geoapify Maps geocoding API key yet, follow the instructions in the link below to generate one:
https://www.geoapify.com/get-started-with-maps-api/