Skip Navigation

[Resolved] Split Map address field

This support ticket is created 2 years, 6 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by anujM 2 years, 5 months ago.

Assisted by: Waqar.

Author
Posts
#2437127

Tell us what you are trying to do? split map address field data in different fields like city, state, area, country, pincode and store in different custom fields ex: after spliting city in city custom filed, state in state custom field etc.

Is there any documentation that you are following?no

Is there a similar example that we can see?no

What is the link to your site?hidden link
Thanks

#2438011

Hi,

Thank you for contacting us and I'd be happy to assist.

By default, the Toolset address type field only stores the exact lat/long coordinates of the selected location and the complete human-readable address. But, it doesn't store its information in smaller geographical components like state, city, zip code, etc.

To fetch these geographical items from the selected location, you'll need to include some custom script, as shown in this support thread:
https://toolset.com/forums/topic/separating-content-from-the-address-field/#post-911325

Once, you have that data, you'll be able to store it in the respective fields, accordingly.

I hope this helps and for more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

regards,
Waqar

#2440785

i tried script on https://toolset.com/forums/topic/separating-content-from-the-address-field/#post-911325 but its not working.
plz. provide solution.

#2440971

Thanks for writing back.

Can you please share temporary admin login details, so that I can see how and where this custom script has been included?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

I also see this warning message in the browser console, when I try to use the address field in your website's form:


You have exceeded your daily request quota for this API. 

If you did not set a custom daily request quota, verify your project has an active billing account: <em><u>hidden link</u></em>  

For more information on usage limits and the Google Maps JavaScript API services please see: <em><u>hidden link</u></em>

#2441423

My issue is resolved now. Thank you!