django-portland-oregon-addresses

Geocode as many addresses in Portland, OR as you would like
Download

django-portland-oregon-addresses Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Adam Coddington
  • Publisher web site:
  • http://bitbucket.org/latestrevision/

django-portland-oregon-addresses Tags


django-portland-oregon-addresses Description

Do you need to geocode more addresses in Portland, OR than the Google Maps API will allow? django-portland-oregon-addresses is a Django app that will download and import a list of addresses provided by the City of Portland, Oregon, and provide you with an easy method for geocoding addresses you provideThe data that this application downloads and installs point data provided by the City of Portland, OR.InstallationYou can either install from pip:pip install django-portland-oregon-addressesor checkout and install the source from the bitbucket repository:hg clone https://bitbucket.org/latestrevision/django-portland-oregon-addressescd django-portland-oregon-addressespython setup.py installor checkout and install the source from the github repository:git clone https://github.com/latestrevision/django-portland-oregon-addresses.gitcd django-portland-oregon-addressespython setup.py installThen, import the addresses:python manage.py load_addressesUseGiven a string looking anything like one of the below (it is really quite flexible): 3800 NW Haight Avenue 3800 NORTH WEST Haight Avenue, Portland, OR, 97227, USA 3800 NORTHWEST Haight Ave, PDXYou can run code like the following to get the address's location:from portland_addresses.models import Addressfrom portland_addresses.address_parser import AddressParserExceptiontry: address = Address.get_by_address("3828 N Haight Avenue") print address.location # This is the point corresponding with the above addressexcept Address.DoesNotExist: print "I couldn't find an address matching this :-\"except AddressParserException: print "I couldn't parse the address you entered :-("Commandsload_addresses: Download and import addresses provided by the City of Portland, Oregon.Product's homepage


django-portland-oregon-addresses Related Software