Skip to main content

GeoJSON support for Django GraphQL

Project description

Pypi Wheel Build Status Codecov Code Climate

GeoJSON support for Django GraphQL

Dependencies

  • Python ≥ 3.4

  • Django ≥ 1.11

Installation

Install last stable version from Pypi.

pip install django-graphql-geojson --process-dependency-links

GeoJSONType

from graphql_geojson.types import GeoJSONType


class PlaceType(GeoJSONType):

    class Meta:
        model = models.Place
        geojson_field = 'location'

Here we go!

query {
  places {
    id
    type
    geometry {
      type
      coordinates
    }
    properties {
      name
    }
  }
}

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-graphql-geojson-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

django_graphql_geojson-0.0.1-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-graphql-geojson-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-graphql-geojson-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1e52e7e3d7fc0839b4e170521b5e2611617f5c5809d7798d9148aeb227ea74b3
MD5 2c9c320196a0b4f11dcae9145c27464c
BLAKE2b-256 85b4fe7d98763eea47dddf0959d011af0c06cef1b6706bda5bb1ac1bc4c9d610

See more details on using hashes here.

File details

Details for the file django_graphql_geojson-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_graphql_geojson-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a1aafb407db158671fb17211969ff17e1edaf7d68f6aee875947f07c03c0235c
MD5 51448288b58b5985afaf449d9a653c48
BLAKE2b-256 59ee9dcd5413db15bb3955c9638d96a737fec9a01996a2b1b052b409d489d566

See more details on using hashes here.

Supported by

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