Active
Project:
Google Places Autocomplete
Version:
8.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2022 at 03:24 UTC
Updated:
14 Apr 2023 at 10:34 UTC
Jump to comment: Most recent
Comments
Comment #2
geoanders commentedUsing this module: https://www.drupal.org/project/address_autocomplete and the address field, a custom plugin/provider could be built to populate the address fields, like city, postal code, etc...
I built out a custom plugin/provider on this module: https://www.drupal.org/project/geocode_earth_autocomplete, as an example.
Comment #5
danielwirz commentedHey there!
I stumbled across a very similar issue where I needed the lat & long coordinates as value for the field. I think, a nice solution for this would be to add an option for a custom format, using the places object given by the API.
I added a new
output_formatsetting to the field formatter. This way we can use JS template literals to format the resulting value as desired.What do you think, could that be a useful feature?