{"id":20925285,"url":"https://github.com/ziptastic/ziptastic-jquery-plugin","last_synced_at":"2025-04-06T22:06:40.186Z","repository":{"id":2793151,"uuid":"3793303","full_name":"Ziptastic/ziptastic-jquery-plugin","owner":"Ziptastic","description":"This is a jQuery plugin that shows how Ziptastic could be used.","archived":false,"fork":false,"pushed_at":"2023-03-29T23:17:04.000Z","size":56,"stargazers_count":241,"open_issues_count":1,"forks_count":28,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-30T21:06:58.554Z","etag":null,"topics":["forms","forward","forward-geocoding","geocode","geocoding","gis","html","javascript","jquery","jquery-plugin","postal-code","reverse","reverse-geocode","reverse-geocoding","zipcode","zipcodes","ziptastic","ziptastic-jquery-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ziptastic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2012-03-22T01:13:49.000Z","updated_at":"2025-02-26T12:54:27.000Z","dependencies_parsed_at":"2023-07-05T20:16:46.358Z","dependency_job_id":null,"html_url":"https://github.com/Ziptastic/ziptastic-jquery-plugin","commit_stats":{"total_commits":30,"total_committers":6,"mean_commits":5.0,"dds":"0.30000000000000004","last_synced_commit":"cac278140c617ddb9e4d6ada0a5c64ae0fdd4f68"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziptastic%2Fziptastic-jquery-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziptastic%2Fziptastic-jquery-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziptastic%2Fziptastic-jquery-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziptastic%2Fziptastic-jquery-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ziptastic","download_url":"https://codeload.github.com/Ziptastic/ziptastic-jquery-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["forms","forward","forward-geocoding","geocode","geocoding","gis","html","javascript","jquery","jquery-plugin","postal-code","reverse","reverse-geocode","reverse-geocoding","zipcode","zipcodes","ziptastic","ziptastic-jquery-plugin"],"created_at":"2024-11-18T20:30:29.286Z","updated_at":"2025-04-06T22:06:40.160Z","avatar_url":"https://github.com/Ziptastic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Official Ziptastic jQuery plugin!\n[![Ziptsatic Logo](https://www.getziptastic.com/static/images/ziptastic-logo.png)](https://www.getziptastic.com)\n\nSeamlessly integrate [Ziptastic!](https://www.getziptastic.com) with jQuery\n\n## Usage\n\n#### Standalone Lookup\n\nCan be used to query for a specific zip code.\n\n```js\n$.ziptastic('US', 48867, 'your-api-key-here', function(country, state, stateCode, city, zip) {\n  console.log(country, state, stateCode, city, zip);\n});\n```\n\n#### Input Keyup Wrapper with forward geocoding (postal code)\n\n```js\nvar duration = 500;\n\nvar elements = {\n    country: $('#country'),\n    state: $('#state'),\n    state_short: $('#state-short'),\n    city: $('#city'),\n    zip: $('#zip')\n}\n\n// Initially hide the city/state/zip\nelements.country.parent().hide();\nelements.state.parent().hide();\nelements.state_short.parent().hide();\nelements.city.parent().hide();\n\nvar options = {\n    \"key\": \"\u003cyour-api-key-here\u003e\",\n    \"country\": \"US\"\n}\nelements.zip.ziptastic(options)\n    .on('zipChange', function(evt, country, state, state_short, city, zip) {\n        // Country\n        elements.country.val(country).parent().show(duration);\n\n        // State\n        elements.state_short.val(state_short).parent().show(duration);\n        elements.state.val(state).parent().show(duration);\n\n        // City\n        elements.city.val(city).parent().show(duration);\n    });\n});\n```\n\n#### Using Reverse Geocoding\n\nJust set `reverseGeo` to `true` in the `options` object.\n\n```js\nvar options = {\n    \"key\": \"\u003cyour-api-key-here\u003e\",\n    \"reverseGeo\": true,\n    \"country\": \"US\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziptastic%2Fziptastic-jquery-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziptastic%2Fziptastic-jquery-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziptastic%2Fziptastic-jquery-plugin/lists"}