Possibility of parsing out the results into usable location values

Created on 16 April 2022, over 2 years ago
Updated 14 April 2023, over 1 year ago

Problem/Motivation

Is it possible to output just the "City" "Postal Code" or "State" etc? I know this is just a textfield, but this module would serve as a superbly upgraded alternative for the Address Module if we could parse out the output into usable location values.

✨ Feature request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States chucksimply

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @danielwirz opened merge request.
  • πŸ‡¨πŸ‡­Switzerland danielwirz

    Hey 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_format setting 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?

Production build 0.71.5 2024