Login   Register  
PHP Classes
elePHPant
Icontem

Cities and zip codes

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Johan Barbier
Name: Johan Barbier <e-mail contact>
Packages: 17 Browse all classes by Johan Barbier Browse all classes by
Country: France France - PHP jobs in France
Age: 41
All time rank: 402 in France France
Week rank: 91 Down5 in France France Down
Innovation award
Innovation award
Nominee: 6x


  Detailed description   Download .zip .tar.gz  
This package can be used to lookup for cities and the respective zip codes.

It uses AJAX to search a file database with cities and the respective zip codes using just the first few letters of the city that the user types in a form text input.

The class can submit an AJAX request to find the cities that match the typed letters and display the city names without reloading the whole page.

It can also search for zip codes if the user types the first numbers of the zip code to search.

The listing that is displayed may be sorted by city name or zip code.

The example uses a file database with French cities but it may be replaced by another file with city and zip code information of anywhere in the world.

ADDITION : I put 2 versions :
'villes_normal/' folder is the old version
'villes/' folder is the new version, with Phonex and Soundex searches and sorting added

  Classes of Johan Barbier  >  Cities and zip codes  >  Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Cities and zip codes
Base name: ocities
Description: Lookup for cities and zip codes using AJAX
Version: -
PHP version: -
License: Free for non-commercial use
All time users: 5037 users
All time rank: 436
Week users: 1 user
Week rank: 2036 Down
 
  Groups   Rate classes User ratings   Dependencies   Applications   Files Files  

  Groups  
Group folder image Geography Locations, mapping and demographics View top rated classes
Group folder image AJAX Interact with the Web server without page reloading View top rated classes


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (87.5%)
Good (93.8%)
Good (93.8%)
Good (87.5%)
-
-
Sufficient (71.2%)
162
Month:
Not yet rated by the users

  Packages needed by this class  
Class Dependency Why it is needed
Soundex 2
Conditional
To use the new search features

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imagecss (1 file)
Files folder imagedocs (1 directory)
Files folder imagevilles (2 files, 2 directories)
Files folder imagevilles_normal (1 file, 2 directories)
Accessible without login Plain text file readme.txt Doc. Readme file

  Files  /  Files folder image css  
File Role Description
  Accessible without login Plain text file maindoc.css Data css for documentation

  Files  /  Files folder image docs  
File Role Description
Files folder imageenglish (1 file, 1 directory)

  Files  /  docs  /  Files folder image english  
File Role Description
Files folder imageclasses (1 directory)
  HTML file index.html Doc. Index doc page

  Files  /  docs  /  english  /  Files folder image classes  
File Role Description
Files folder imagecity (1 file, 2 directories)

  Files  /  docs  /  english  /  classes  /  Files folder image city  
File Role Description
Files folder imageoajax (5 files)
Files folder imageocity (7 files)
  HTML file index.html Doc. Index doc page for the package

  Files  /  docs  /  english  /  classes  /  city  /  Files folder image oajax  
File Role Description
  HTML file buildAjax.html Doc. Doc
  HTML file class_oajax.html Doc. Doc
  HTML file search.html Doc. doc
  HTML file setFooter.html Class doc
  HTML file setHeader.html Doc. doc

  Files  /  docs  /  english  /  classes  /  city  /  Files folder image ocity  
File Role Description
  HTML file aVilles.html Doc. doc
  HTML file class_ocity.html Doc. doc
  HTML file getFirst.html Doc. doc
  HTML file getSearch.html Doc. doc
  HTML file sResult.html Doc. doc
  HTML file sSearch.html Doc. doc
  HTML file __construct.html Doc. doc

  Files  /  Files folder image villes  
File Role Description
Files folder imagephp4 (4 files)
Files folder imagephp5 (4 files)
  Accessible without login Plain text file data.dat Data Data file
  Accessible without login Plain text file index.php Example Index example page

  Files  /  villes  /  Files folder image php4  
File Role Description
  Accessible without login Plain text file oajax.cls.php Class PHP4 oajax class
  Accessible without login Plain text file ocity.cls.php Class PHP4 ocity class
  Accessible without login Plain text file phonex.cls.php Class Phonex class
  Accessible without login Plain text file soundex2.cls.php Class Soundex2 class

  Files  /  villes  /  Files folder image php5  
File Role Description
  Accessible without login Plain text file oajax.cls.php Class PHP5 oajax class
  Accessible without login Plain text file ocity.cls.php Class PHP5 ocity class
  Accessible without login Plain text file phonex.cls.php Class Phonex class
  Plain text file soundex2.cls.php Class Soundex2 class

  Files  /  Files folder image villes_normal  
File Role Description
Files folder imagephp4 (2 files)
Files folder imagephp5 (2 files)
  Plain text file index.php Example index page example

  Files  /  villes_normal  /  Files folder image php4  
File Role Description
  Plain text file oajax.cls.php Class Ajax class
  Plain text file ocity.cls.php Class ocity class

  Files  /  villes_normal  /  Files folder image php5  
File Role Description
  Plain text file oajax.cls.php Class Oajax class
  Plain text file ocity.cls.php Class Ocity class

Download all files: ocities.tar.gz ocities.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.