More details in Mastodon/Twitter
- Get list of places
- Get list of places from Wikidata (list of human settlements (places) in Kerala)
SELECT DISTINCT ?item ?len ?lml ?coord
WHERE
{
?item wdt:P31 wd:Q486972 .
?item wdt:P131/wdt:P131* wd:Q1186.
?item wdt:P625 ?coord.
OPTIONAL { ?item rdfs:label ?len. FILTER(LANG(?len)="en") }
OPTIONAL { ?item rdfs:label ?lml. FILTER(LANG(?lml)="ml") }
}
LIMIT 100
- Get list of wards that has a coordinate from Wikidata
SELECT DISTINCT ?item ?len ?lml ?coord
WHERE
{
?item wdt:P31 wd:Q1195098 .
?item wdt:P131* wd:Q1186.
?item wdt:P625 ?coord.
OPTIONAL { ?item rdfs:label ?len. FILTER(LANG(?len)="en") }
OPTIONAL { ?item rdfs:label ?lml. FILTER(LANG(?lml)="ml") }
}
Get boundary of Kerala districts. Go to https://overpass-turbo.eu/ and run this query:
[out:xml][timeout:500];
{{geocodeArea:Kerala}}->.searchArea;
(
nwr["boundary"="administrative"]["admin_level"="5"](area.searchArea);
);
// print results
out meta;
>;
out meta qt;
Download file as geojson and load it in leaflet.