Skip to main content

Geocoder

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.

Prerequisites

Installation

  1. Add geocoder to your INSTALLED_APPS list in settings.py

  2. Import the geocoder ajax url into your project’s urls.py

  3. Set GEOCODER_BOUNDING_BOXES to include one or more bounding boxes

  4. Run python manage.py syncdb

  5. Restart your web server, if necessary.

Data

http://www.ordnancesurvey.co.uk/oswebsite/products/os-opendata.html

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 settings.py.

  • Import the data using one of the import management commands, the path to the data file is the only argument.

Licensing

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: http://www.ordnancesurvey.co.uk/oswebsite/opendata/licensing.html for more details.

Metadata

Release files for django-os-geocoder 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-os-geocoder 0.1.6
File Size Uploaded
django-os-geocoder-0.1.6.tar.gz 9.6 kB Details

Release files / django-os-geocoder-0.1.6.tar.gz

Download URL django-os-geocoder-0.1.6.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a6b3ec67e2ff8f034bd1f015eb7c8b4795b9f024db8a614f0e10729d7c645779
BLAKE2b-256 checksum
How to use checksums
5a567d55d012c28f4ad9f61999d6d8004a4f090f0541ea6f8b2a2f6d70414e1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page