Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Location to ZipCode API - JQuery ZipCode Autocompletion

This is a sample web project of how to implement a zip code autocomplete field.

The user starts writing a city name or zip code (postal code) and then a tooltip shows up with the matching cities.

screenshot

This sample is only for US cities

THE SERVER NEEDS PHP TO RUN

Installation

Clone this project and run:

   bower install

Running the demo

You can run this demo using the php built-in server:

   php -S localhost:8081

And then open http://localhost:8081 in your browser

Customization

The data comes from a csv file downloaded from here: http://federalgovernmentzipcodes.us/

The data is sent as a plain JSON document back and forth, implementing security strategies is up to you.

We are using this plugin for the form autocompletion:

https://github.com/Pixabay/jQuery-autoComplete

Thanks @Pixabay ! and the people behind federalgovernmentzipcodes.us (Daniel S. Coven's ? )

About

A web sample project (not a library) that shows how to build a webservice or API that consumes a csv file with the US zip codes, and show an autocompletable in the frontend to fill in with this data. The user types a city name or zipcode and it suggest the zip codes and full city names to him.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages