I added the ability to concatenate certain elements of the geocoded object that is returned by Google, using {{ and }}, wrap the key like you would above; like so:
use EmilianoTisato\GoogleAutocomplete\AddressMetadata;
use EmilianoTisato\GoogleAutocomplete\GoogleAutocomplete;
GoogleAutocomplete::make('Address')->withValues(['latitude', 'longitude']),
AddressMetadata::make('coordinates')->fromValue('{{latitude}}, {{longitude}}'),
So the value that would be rendered within the coordinates filed would be something like:
I added the ability to concatenate certain elements of the geocoded object that is returned by Google, using
{{
and}}
, wrap the key like you would above; like so:So the value that would be rendered within the coordinates filed would be something like: