Official Ziptastic jQuery plugin!
Seamlessly integrate Ziptastic! with jQuery
Usage
Standalone Lookup
Can be used to query for a specific zip code.
$;
Input Keyup Wrapper with forward geocoding (postal code)
var duration = 500; var elements = country: state: state_short: city: zip: // Initially hide the city/state/zipelementscountryparent;elementsstateparent;elementsstate_shortparent;elementscityparent; var options = "key": "<your-api-key-here>" "country": "US"elementszip ;});
Using Reverse Geocoding
Just set reverseGeo
to true
in the options
object.
var options = "key": "<your-api-key-here>" "reverseGeo": true "country": "US"