Skip to main content

A Django app to work with geolocation fields without a spatial database.

Project description

django-geolocation-fields

A Django app to facilitate the manipulation of Geolocation objects in a GeoDjango app without using a spatial database.

Detailed documentation is in the "docs" directory.

Quick start

The project is still in development

Here is an example that uses it https://github.com/syk1k/django-geolocation

  1. Add "geolocation_fields" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        #...
        'geolocation_fields',
    ]
    
  2. Add a PointField to a model:

    from geolocation_fields.models import fields
    field_name = fields.PointField(verbose_name='field_name')
    
  3. Configurations To have more control over the package, you can canfigure it yourself

    By default the PointField's widget only display the map, you can also chose to display the editable input field in the settings

    GEOLOCATION_FIELD = {
        'display_input': True, # Display the input field. False to remove
    }
    

    This version of the package integrate leaflet only. Here is the default configuration for the fields (PointField for the moment). The configurations uses leaflet Map options. Check the leafletJS

    GEOLOCATION_FIELD = {
        "provider": "leaflet", # Two provider: Leaflet, Mapbox
        "center" : [0,0],
        "zoom": 12,
        'display_input': False,
    }
    

Project details


Download files

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

Source Distribution

django-geolocation-fields-0.1.3.tar.gz (686.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

django_geolocation_fields-0.1.3.0-py3-none-any.whl (699.4 kB view details)

Uploaded Python 3

django_geolocation_fields-0.1.3-py3-none-any.whl (699.4 kB view details)

Uploaded Python 3

File details

Details for the file django-geolocation-fields-0.1.3.tar.gz.

File metadata

  • Download URL: django-geolocation-fields-0.1.3.tar.gz
  • Upload date:
  • Size: 686.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for django-geolocation-fields-0.1.3.tar.gz
Algorithm Hash digest
SHA256 97f6e2fb8e35b37abd4e1906f8c45b68c4186ad132bb0ba82ec651747b40ad4e
MD5 a4da65d22c073f85c8e6513b10736263
BLAKE2b-256 56918112218b2114e13915a1d424847c96527fab0477c9b86a6a20681f976f20

See more details on using hashes here.

File details

Details for the file django_geolocation_fields-0.1.3.0-py3-none-any.whl.

File metadata

  • Download URL: django_geolocation_fields-0.1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 699.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for django_geolocation_fields-0.1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 374a7f198cfdd58b0cd16cd860dc15d18e45b25c254b619d35a21dc6865bd516
MD5 18c6ef1321e67ab104d63931903fd38e
BLAKE2b-256 cf57798dc9f0dec0fbe46bc67bd8c1e6de93f88220087d6f93fa6e0ec842a5a5

See more details on using hashes here.

File details

Details for the file django_geolocation_fields-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: django_geolocation_fields-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 699.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for django_geolocation_fields-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 17d131a60ed43c54236a744b2b6d1297f70aa91497f24713c42407129efa1e36
MD5 fc6519d13699fef5ab3f431927e95f4b
BLAKE2b-256 0935129cbceabc04288e733a7ca1fa58a028a4ed74317f674a98d8bdad3cee55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page