Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a placeId subfield #25

Closed
lindseydiloreto opened this issue Apr 19, 2021 · 1 comment
Closed

Add a placeId subfield #25

lindseydiloreto opened this issue Apr 19, 2021 · 1 comment
Labels
Feature Request New feature or request
Milestone

Comments

@lindseydiloreto
Copy link
Collaborator

We are currently storing the Place ID returned by the Google API, however, it is not readily accessible. The value is not visible in the Address field within the control panel, and accessing it via Twig is slightly clunky...

{% set placeId = address.raw.place_id %}

It would be nice if this value were brought up to the top level of subfields, on par with the coordinates fields.

We could (optionally) make the Place ID value visible within the Address field. Calling it via Twig would look more like this...

{% set placeId = address.placeId %}
@lindseydiloreto lindseydiloreto added the Feature Request New feature or request label Apr 19, 2021
@lindseydiloreto lindseydiloreto added this to the 4.1 milestone Apr 30, 2021
@lindseydiloreto
Copy link
Collaborator Author

The placeId subfield has been added, and will be formally released with v4.1.0. 👍

In the meantime, you can get it by switching to the dev branch...

"doublesecretagency/craft-googlemaps": "dev-v4-dev"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant