Simple Geo Instance
Use to view Geographic area - excluding GEOJSON
Filtering & search:
to find by name:
http://localhost:8000/api/simple_geos/?search=united+kingdom
or
http://localhost:8000/api/simple_geos/?name__icontains=united+kingdom
to find by geoid:
http://localhost:8000/api/simple_geos/?ID=GBR
or filter by type, and order by name
http://localhost:8000/api/simple_geos/?m_type=country&ordering=name
or find geoms contained by a box
http://localhost:8000/api/simple_geos/?contains_geom={ "type": "Point", "coordinates": [ -123.26436996459961, 44.564178042345375 ] }
GET /api/simple_geos/59/?format=api
{
"id": 59,
"ID": "GBR",
"name": "United Kingdom",
"m_type": "country",
"location": {
"type": "Point",
"coordinates": [
-2.8869514831036756,
54.14704818919766
]
},
"members_count": 9111,
"question_count": 923,
"created_at": "2016-03-20T04:26:45.483907Z",
"type_description": null,
"parent": null,
"parent_url": null,
"politicians": [],
"modified_at": "2019-12-08T11:21:34.848145Z"
}