Skip to content

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

License

Notifications You must be signed in to change notification settings

wooyek/django-geocoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django geocoding for models

Documentation Status Coveralls.io coverage CodeCov coverage Maintainability License Tweet about this project

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published