Skip to main content

Abstract base models and mixins to store address and GPS coordinates info

Project description

https://img.shields.io/pypi/v/django-geocoding.svg https://img.shields.io/travis/wooyek/django-geocoding.svg Documentation Status Coveralls.io coverage CodeCov coverage Maintainability License Tweet about this project https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg

Abstract base models and mixins to store address and GPS coordinates info

Features

  • AbstractLocation base model with opencage geocoding support

Demo

To run an example project for this django reusable app, click the button below and start a demo serwer on Heroku

Deploy Django Opt-out example project to Heroku

Quickstart

Install Django geocoding for models:

pip install django-geocoding

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django_geocoding.apps.DjangoGeocodingConfig',
    ...
)

Add Django geocoding for models’s URL patterns:

from django_geocoding import urls as django_geocoding_urls


urlpatterns = [
    ...
    url(r'^', include(django_geocoding_urls)),
    ...
]

Running Tests

Does the code actually work?

::
$ pipenv install –dev $ pipenv shell $ tox

We recommend using pipenv but a legacy approach to creating virtualenv and installing requirements should also work. Please install requirements/development.txt to setup virtual env for testing and development.

Credits

This package was created with Cookiecutter and the wooyek/cookiecutter-django-app project template.

History

0.1.0 (2017-12-27)

  • First release on PyPI.

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_geocoding-0.1.1-py2.py3-none-any.whl (13.8 kB) Copy SHA256 hash SHA256 Wheel 3.5
django-geocoding-0.1.1.tar.gz (47.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page