emilianotisato / nova-google-autocomplete-field

Address Autocomplete with Google Place API (full metadata available)
20 stars 17 forks source link

Feature/select long short name #16

Closed dniccum closed 3 years ago

dniccum commented 3 years ago

Adds the ability to identify the type/value of the geocoded object returned from Google using dot notation. For instance, if you used the following within Nova:

use EmilianoTisato\GoogleAutocomplete\GoogleAutocomplete;

GoogleAutocomplete::make('Address')
    ->withValues([
        'route.short_name',
        'administrative_area_level_1.long_name',
    ]),

The value passed to the AddressMetadata fields would be the short_name version and long_name version respectively.

dniccum commented 3 years ago

@emilianotisato Any update on this?