I'm using Geocomplete - jQuery Geocoding and Places Autocomplete Plugin and I'm trying to limit the results returned in the following way. I need:
- Country: Australia
- State: Queensland
with the suggestions limited to:
- Post Code
- Suburb
I can limit to AUS with no problem but the rest is proving difficult. Reading through the types I believe I need to use administrative_area_level_1
to get the State and then postal_code
and neighborhood
to limit the suggestions? I'm just totally stuck on how to do it.
$("input").geocomplete({
country: 'AUS',
types: ["postal_code", "neighborhood"], // Doesn't work
});