Skip Navigation

[Resolved] Pulling Different Data From Maps Address Field

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Beda 5 years, 9 months ago.

Assisted by: Beda.

Author
Posts
#1203454

Hey Guys,

When using Metabox for example, I add a field (like in Toolset) "Address" which then pulls info from google to load the address, I can then add seperate fields and name the field "city" which then get's populated by the address field and only shows the city of the address selected..

Is there some way to also get this info using toolset?

#1203742

That's a very great feature, I must say, and it's not available like that in Toolset.
You would have to suggest this as a feature here: https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Or, you can add Custom Fields with Toolset Types and populate them manually with the proper data.

#1204050

How can we populate it from the data google returns though?

#1204424

You cannot, as explained, Toolset does not feature such an option.

You would have to use complex Custom Code, which (for example on save_post() action), gets the saved address provided by Google, and somehow extracts City or other data of the address.

We usually cannot help crafting such custom code, as it is above the scope of Toolset Support.

However, my colleague Nigel in past has helped someone achieving a very similar goal:
https://toolset.com/forums/topic/separating-content-from-the-address-field/

Maybe this helps to get you started?

Note, this does not replace an inbuilt feature which you would have to request from the Product Management as previously elaborated.