{"id":20052491,"url":"https://github.com/subins2000/kerala-place-name-analysis","last_synced_at":"2025-05-05T11:32:26.105Z","repository":{"id":260453215,"uuid":"871571037","full_name":"subins2000/kerala-place-name-analysis","owner":"subins2000","description":"Simple analysis of place names in Kerala","archived":false,"fork":false,"pushed_at":"2024-11-02T14:33:54.000Z","size":3353,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T22:41:34.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subins2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-12T10:32:43.000Z","updated_at":"2024-11-02T14:33:30.000Z","dependencies_parsed_at":"2024-10-31T12:31:32.289Z","dependency_job_id":"c0328f89-f7af-4fa5-8442-2302d57caa6f","html_url":"https://github.com/subins2000/kerala-place-name-analysis","commit_stats":null,"previous_names":["subins2000/kerala-place-name-analysis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subins2000%2Fkerala-place-name-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subins2000%2Fkerala-place-name-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subins2000%2Fkerala-place-name-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subins2000%2Fkerala-place-name-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subins2000","download_url":"https://codeload.github.com/subins2000/kerala-place-name-analysis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252489194,"owners_count":21756283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T12:17:53.637Z","updated_at":"2025-05-05T11:32:25.213Z","avatar_url":"https://github.com/subins2000.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kerala place name analysis\n\nMore details in Mastodon/Twitter\n* https://aana.site/@subins2000/113293709571986700\n* https://x.com/SubinSiby/status/1844991107567939650\n\n## Dataset\n\n* Get list of places\n  * Places in Kerala: https://overpass-api.de/api/interpreter?data=[out:json];area[name=%22Kerala%22];node(area)[place];out;\n  * Bus stops in Kerala: https://overpass-api.de/api/interpreter?data=[out:json];area[name=%22Kerala%22]-%3E.searchArea;node[%22highway%22=%22bus_stop%22](area.searchArea);out;\n* Get list of places from Wikidata (list of human settlements (places) in Kerala)\n\n```sql\nSELECT DISTINCT ?item ?len ?lml ?coord\nWHERE\n{\n  ?item wdt:P31 wd:Q486972 .\n  ?item wdt:P131/wdt:P131* wd:Q1186.\n  ?item wdt:P625 ?coord.\n  OPTIONAL { ?item rdfs:label ?len. FILTER(LANG(?len)=\"en\") }\n  OPTIONAL { ?item rdfs:label ?lml. FILTER(LANG(?lml)=\"ml\") }\n}\nLIMIT 100\n```\n* Get list of wards that has a coordinate from Wikidata\n\n```sql\nSELECT DISTINCT ?item ?len ?lml ?coord\nWHERE\n{\n  ?item wdt:P31 wd:Q1195098 .\n  ?item wdt:P131* wd:Q1186.\n  ?item wdt:P625 ?coord.\n  OPTIONAL { ?item rdfs:label ?len. FILTER(LANG(?len)=\"en\") }\n  OPTIONAL { ?item rdfs:label ?lml. FILTER(LANG(?lml)=\"ml\") }\n}\n```\n\n## Map\n\nGet boundary of Kerala districts. Go to https://overpass-turbo.eu/ and run this query:\n\n```ruby\n[out:xml][timeout:500];\n{{geocodeArea:Kerala}}-\u003e.searchArea;\n(\n  nwr[\"boundary\"=\"administrative\"][\"admin_level\"=\"5\"](area.searchArea);\n);\n// print results\nout meta;\n\u003e;\nout meta qt;\n```\n\nDownload file as geojson and load it in leaflet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubins2000%2Fkerala-place-name-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubins2000%2Fkerala-place-name-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubins2000%2Fkerala-place-name-analysis/lists"}