Address model backed by Google Maps API for your project.
Install django-google-address:
pip install django-google-address
Add it to INSTALLED_APPS on settings.py:
INSTALLED_APPS = [ ..., 'google_address' ]
Migrate:
./manage.py migrate
Create an Address object with the raw address. Requests will be made to the Google API when saving the address:
>>> from google_address.models import Address >>> a = Address(raw="Av. Paulista, 1000") >>> a.save() >>> a.address_line 'Avenida Paulista, 1000, Bela Vista, São Paulo, SP, Brazil'
You can check the complete documentation here.
To test this module
python google_address/tests/runtests.py
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License. See the LICENSE.md file for details.