Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A Django app that lets you load Ordnance Survey data and use it to find places.

Project Description

This is a Django app that lets you load Ordnance Survey data and use it to find places.

A list of Places from the Ordnance Survey is stored in a spatial database, and a url is provided to query them by name and return a JSON response containing matching places. Useful for autocompleting inputs that take town, city or road names.

In addition, the places are filtered by a series of bounding boxes, so that only places within the supplied boxes are returned.



  1. Add geocoder to your INSTALLED_APPS list in
  2. Import the geocoder ajax url into your project’s
  3. Set GEOCODER_BOUNDING_BOXES to include one or more bounding boxes
  4. Run python syncdb
  5. Restart your web server, if necessary.


The Ordnance Survey make large data sets available under an open license. See the url above for more details. This app uses the OS Locator and 1:50k Gazetteer.

Importing data

  • Download the data from the Ordnance Survey website.
  • Set the GEOCODER_BOUNDING_BOXES entry in your
  • Import the data using one of the import management commands, the path to the data file is the only argument.


Anywhere you make use of the data from the OS you should display the following text:

> Contains Ordnance Survey data © Crown copyright and database right 2013

See the OS OpenData Licensing: for more details.

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-os-geocoder-0.1.6.tar.gz (9.6 kB) Copy SHA256 Checksum SHA256 Source Aug 20, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting