GithubHelp home page GithubHelp logo

ziptastic / ziptastic-jquery-plugin Goto Github PK

View Code? Open in Web Editor NEW
241.0 241.0 29.0 56 KB

This is a jQuery plugin that shows how Ziptastic could be used.

License: MIT License

HTML 38.08% JavaScript 61.92%
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

ziptastic-jquery-plugin's People

Contributors

bfranco94 avatar daspecster avatar jkrup avatar thornbill avatar zoramite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ziptastic-jquery-plugin's Issues

Option to specify 2 digit state abbreviation

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);              
            });

bad reference to zipid in jquery plugin

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.

Support reverse geocoding.

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.

Problem with non-US zipcodes

I tried a Moscow (Russia) postcode 123557, and British MK18 5EH. Both gave me 404s. My current Chicago zipcode worked expectedly fine.

Make the database open?

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.

https support

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.