Skip Navigation

[Resolved] Is it possible to only accept a full address, not regions on Google Map

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to configure my address input field to require a full address instead of allowing Users to select general regions or areas.

Solution: This type of Places Autocomplete customization would require custom code, as the configurations are not exposed in the Types or CRED GUI.

Relevant Documentation: https://developers.google.com/maps/documentation/javascript/places-autocomplete#add_autocomplete

This support ticket is created 7 years 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 3 voices.

Last updated by kateP-2 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#594637

Tell us what you are trying to do?

Is it possible to limit Google Places autocomplete on a CRED form to full street addresses only, and not suburbs, cities, regions etc. I know this is possible to do if you are hardcoding it. But is it possible through Toolset?

#594826

Hi, unfortunately there is not a good way to provide those types of configurations for an address field using the CRED or Types GUI. It would require custom code using JavaScript to modify the parameters of the Autocomplete field generated for the address custom field.

#596174

Hi Christian

Thanks. I'm guessing that's outside the scope of this support forum. I'll have to try figure it out.

Thanks
Gavin

#1367005

hi gavinS-2
Did you figure out how to do this?
It looks like a standard part of the Google Places API. Standard option in some other plugins.

Would appreciate any pointers from your experience.