WP Manifestindependent plugin directory
manifest / content / acfaddresscoordinates

Advanced Custom Fields: Address with Coordinates

WordPress plugin to add ACF Pro (v5) Address fields with GPS coordinates geocoding

by Pierre Lebedel · github.com/pierrelebedel/acfaddresscoordinates

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/pierrelebedel/acfaddresscoordinates/archive/refs/heads/main.zip

Readme

ACF Address fields with GPS coordinates geocoding

WordPress plugin that adds ACF Address fields.

The GPS coordinates are geocoded on form submit with OSM Nominatim API.

The countries list is provided by countriesnow.space API.

Usage

$address = get_field('YOUR_FIELD_NAME');

print_r($address);

/*
Array
(
    [street_1]     => 24 rue du Test
    [street_2]     => 
    [post_code]    => 07700
    [city]         => Bidon
    [state]        => 
    [country_code] => FR
    [latitude]     => 4.5342856
    [longitude]    => 44.3663529
    [country_name] => France
)
*/

Read the full README on GitHub →