Hello,
No, you should create a separate text
field with the ID address_xxx
to retrieve the suggestions address for the map. Here ist the sample code:
'fields' => [
[
'name' => __( 'Address', 'your-text-domain' ),
'id' => $prefix . 'address',
'type' => 'text',
],
[
'name' => __( 'Lat', 'your-text-domain' ),
'id' => $prefix . 'lat',
'type' => 'text',
],
[
'name' => __( 'Lng', 'your-text-domain' ),
'id' => $prefix . 'lng',
'type' => 'text',
],
[
'name' => __( 'Map', 'your-text-domain' ),
'id' => $prefix . 'map_v0mlzrv141',
'type' => 'map',
'api_key' => 'xxx',
'address_field' => 'address',
],
]