ziptastic / ziptastic-jquery-plugin Goto Github PK
View Code? Open in Web Editor NEWThis is a jQuery plugin that shows how Ziptastic could be used.
License: MIT License
This is a jQuery plugin that shows how Ziptastic could be used.
License: MIT License
Would be awesome if it captures browser autocomplete too, so maybe a combination of keyup and blur?
Should be in here too https://bower.io/search/
I did a quick google search and found this for instance:
https://getsatisfaction.com/foursquare/topics/issues_with_multiple_cities_in_same_zip_code
http://www.flickr.com/groups/zonetagusers/discuss/72057594074475952/
I'm sure there are many more instances of this phenomenon, especially in rural areas.
I do not know what the % of false positives you will have, but just thought I'd pipe up.
First of all, great plugin. It is super helpful and easy to use.
Would it be possible to provide the 2 digit abbreviation for states as one of the returned values in the ziptastic() function? I'm thinking something like this:
elements.zip.ziptastic()
.on('zipChange', function(evt, country, state, twoDigitState, city, zip) {
elements.country.val(country).parent().show(duration);
elements.state.val(twoDigitState).parents('.control-group').show(duration);
elements.city.val(city).parents('.control-group').show(duration);
});
We should detect http vs https so it doesn't throw mixed content warnings.
On line 6 of the plugin, should be "zipid" : "zip" instead of "zip" : "zip"
I also added settings.hide option so that the default hide/show of the state, country and city elements can be disabled.
I'm 99% sure everything will still work but this should be bumped to at least 3.1.0 and tested.
We should let the API or the user do zipcode validation for the countries.
We should also build in reverse geocoding support.
Using HTML5 geolocation services to get the coordinates to pass to the API.
This should be an enableable feature so it doesn't always ask permission to use location services.
I tried a Moscow (Russia) postcode 123557, and British MK18 5EH. Both gave me 404s. My current Chicago zipcode worked expectedly fine.
Hello - I have the jquery iteration implemented and it works perfectly in Safari, Chrome, and Opera, but doesn't show/expand the city, state and country field so that they are visible in MSIE11. I have tried to emulate down to v9, and it still does not work. Any thoughts? Thank you.
Hi,
I am using 2 versions of your API.
url: "http://zip.elevenbasetwo.com/v2/US/" + el.val(),
url: "http://ziptasticapi.com/" + el.val(),
Both are not bringing back data when running in IE 11. They work great in all other browsers. Is there something that you need to do in the code to fix this? Any help would be great.
Thanks
While the idea is good, the database should be open and freely downloadable. It can't be that huge after all, and it would allow others to expand it maybe even adding other countries etc.
Currently ziptastic blows up my https certification on my site b/c the request is an http:// and not an https:// request:
$.getJSON('http://zip.elevenbasetwo.com/v2/US/' + zip);
Are there any plans for ziptastic to be served up from a https:// site? This is critical b/c requesting one's zip code is sensitive information and I'd assume most sites wanting to use this plugin would be https:// sites.
We should be in this list https://www.npmjs.com/search?q=jquery-
http://zip.elevenbasetwo.com/?zip=94618 works correctly, but http://zip.elevenbasetwo.com/?zip=94618-1518 returns 404.
Would be nice if invalid zipcodes didn't create a 404.
Just came across this:
http://geocoder.ca/?sued=1
Tread carefully.
Version 3 endpoint is https://zip.getziptastic.com/v3/<country>/<zip>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.