{"openapi":"3.1.0","info":{"title":"SmartMaps API","version":"1.0.0","description":"Figures for any place in India: a named place's figures, what a point is in, everything within a circle, and the Gazette land notices that name a place. The same numbers smartmaps.in shows. Keys are issued on request (hello@smartmaps.in); call from your server. Plans and the full reference: https://smartmaps.in/api","termsOfService":"https://smartmaps.in/terms#api","contact":{"name":"SmartMaps","email":"hello@smartmaps.in","url":"https://smartmaps.in/api"}},"servers":[{"url":"https://api.smartmaps.in"}],"security":[{"key":[]}],"tags":[{"name":"Places"},{"name":"Land notices","description":"API Growth and Enterprise"},{"name":"Account","description":"Not counted"}],"paths":{"/v1/search":{"get":{"summary":"Find places by name","description":"Up to 10 named places whose name contains q: exact names first, then names that start with it. Counted; reaches no place.","parameters":[{"name":"q","in":"query","required":true,"description":"Part of the name, at least two letters","schema":{"type":"string","minLength":2,"maxLength":60}},{"name":"level","in":"query","required":false,"description":"Only this level","schema":{"type":"string","enum":["state","district","ac","pc","ua","corp","lsg","taluk","village","sd","lb","vl"]}}],"responses":{"200":{"description":"Matching places","headers":{"x-calls-left-month":{"schema":{"type":"integer"},"description":"Calls left this month"},"x-calls-left-today":{"schema":{"type":"integer"},"description":"Calls left today"},"x-places-left-month":{"schema":{"type":"integer"},"description":"Places left this month"},"x-data-build":{"schema":{"type":"string"},"description":"The data build"}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SearchAnswer"},{"$ref":"#/components/schemas/Licensed"}]}}}},"400":{"description":"A parameter is missing or out of range (not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or an unknown one (api_key)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The key's paid period is over (expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is stopped (revoked), the call is not in the plan (not_in_plan), or it came from a web page (browser)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such place or call, or a point or circle off India's land (not_found, outside; not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A limit: too_fast (retry_after), daily_limit, monthly_limit or places_limit (resets_at)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The data could not be read; the call is given back (data)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["Places"]}},"/v1/places/{level}/{id}":{"get":{"summary":"A named place's figures","description":"Every figure, the area, the air quality, and for seats, cities and Kerala units the districts it spans. Counts one place.","parameters":[{"name":"level","in":"path","required":true,"schema":{"type":"string","enum":["state","district","ac","pc","ua","corp","lsg","taluk","village","sd","lb","vl"]},"description":"state: State or union territory; district: District; ac: Assembly constituency; pc: Lok Sabha constituency; ua: Urban agglomeration (a city with the towns grown into it); corp: Municipal corporation; lsg: Local body (Kerala); taluk: Taluk (Kerala); village: Village (Kerala); sd: Taluk or tehsil (sub-district, outside Kerala); lb: Gram panchayat or town (outside Kerala); vl: Village (outside Kerala)"},{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1},"description":"The id /v1/search gives"}],"responses":{"200":{"description":"The place's figures","headers":{"x-calls-left-month":{"schema":{"type":"integer"},"description":"Calls left this month"},"x-calls-left-today":{"schema":{"type":"integer"},"description":"Calls left today"},"x-places-left-month":{"schema":{"type":"integer"},"description":"Places left this month"},"x-data-build":{"schema":{"type":"string"},"description":"The data build"}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PlaceAnswer"},{"$ref":"#/components/schemas/Licensed"}]}}}},"400":{"description":"A parameter is missing or out of range (not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or an unknown one (api_key)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The key's paid period is over (expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is stopped (revoked), the call is not in the plan (not_in_plan), or it came from a web page (browser)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such place or call, or a point or circle off India's land (not_found, outside; not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A limit: too_fast (retry_after), daily_limit, monthly_limit or places_limit (resets_at)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The data could not be read; the call is given back (data)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["Places"]}},"/v1/point":{"get":{"summary":"What a point is in","description":"The places a point is in, and its ~1 km cell's flood, landslide and built-up shares; no people or money for a single cell. Counts the map square.","parameters":[{"name":"lat","in":"query","required":true,"description":"Latitude in degrees, in India","schema":{"type":"number","minimum":6,"maximum":38}},{"name":"lon","in":"query","required":true,"description":"Longitude in degrees, in India","schema":{"type":"number","minimum":68,"maximum":98}}],"responses":{"200":{"description":"The point","headers":{"x-calls-left-month":{"schema":{"type":"integer"},"description":"Calls left this month"},"x-calls-left-today":{"schema":{"type":"integer"},"description":"Calls left today"},"x-places-left-month":{"schema":{"type":"integer"},"description":"Places left this month"},"x-data-build":{"schema":{"type":"string"},"description":"The data build"}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PointAnswer"},{"$ref":"#/components/schemas/Licensed"}]}}}},"400":{"description":"A parameter is missing or out of range (not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or an unknown one (api_key)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The key's paid period is over (expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is stopped (revoked), the call is not in the plan (not_in_plan), or it came from a web page (browser)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such place or call, or a point or circle off India's land (not_found, outside; not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A limit: too_fast (retry_after), daily_limit, monthly_limit or places_limit (resets_at)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The data could not be read; the call is given back (data)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["Places"]}},"/v1/circle":{"get":{"summary":"Figures within a circle","description":"Every figure within the circle, its air quality and its districts. Counts every ~28 km map square it touches. Radius bands: API Starter 2 to 10 km; API Growth 1 to 25 km; Enterprise 0.5 to 50 km.","parameters":[{"name":"lat","in":"query","required":true,"description":"Latitude in degrees, in India","schema":{"type":"number","minimum":6,"maximum":38}},{"name":"lon","in":"query","required":true,"description":"Longitude in degrees, in India","schema":{"type":"number","minimum":68,"maximum":98}},{"name":"radius_km","in":"query","required":true,"description":"Kilometres, within the key's plan's band (API Starter 2 to 10 km; API Growth 1 to 25 km; Enterprise 0.5 to 50 km)","schema":{"type":"number","minimum":0.5,"maximum":100}}],"responses":{"200":{"description":"The circle's figures","headers":{"x-calls-left-month":{"schema":{"type":"integer"},"description":"Calls left this month"},"x-calls-left-today":{"schema":{"type":"integer"},"description":"Calls left today"},"x-places-left-month":{"schema":{"type":"integer"},"description":"Places left this month"},"x-data-build":{"schema":{"type":"string"},"description":"The data build"}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/CircleAnswer"},{"$ref":"#/components/schemas/Licensed"}]}}}},"400":{"description":"A parameter is missing or out of range (not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or an unknown one (api_key)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The key's paid period is over (expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is stopped (revoked), the call is not in the plan (not_in_plan), or it came from a web page (browser)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such place or call, or a point or circle off India's land (not_found, outside; not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A limit: too_fast (retry_after), daily_limit, monthly_limit or places_limit (resets_at)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The data could not be read; the call is given back (data)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["Places"]}},"/v1/notices":{"get":{"summary":"Land notices naming a place","description":"Gazette of India land notices naming a named place (level and id) or a village within a circle (lat, lon, radius_km), newest first. API Growth and Enterprise.","parameters":[{"name":"level","in":"query","required":false,"description":"With id: a named place","schema":{"type":"string","enum":["state","district","ac","pc","lsg","taluk","village","sd","lb","vl"]}},{"name":"id","in":"query","required":false,"description":"With level","schema":{"type":"integer","minimum":1}},{"name":"lat","in":"query","required":false,"description":"With lon and radius_km: a circle","schema":{"type":"number","minimum":6,"maximum":38}},{"name":"lon","in":"query","required":false,"description":"Longitude in degrees, in India","schema":{"type":"number","minimum":68,"maximum":98}},{"name":"radius_km","in":"query","required":false,"description":"Kilometres, within the key's plan's band (API Starter 2 to 10 km; API Growth 1 to 25 km; Enterprise 0.5 to 50 km)","schema":{"type":"number","minimum":0.5,"maximum":100}},{"name":"since","in":"query","required":false,"description":"Only notices from this date","schema":{"type":"string","format":"date"}},{"name":"limit","in":"query","required":false,"description":"How many to list","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"The notices","headers":{"x-calls-left-month":{"schema":{"type":"integer"},"description":"Calls left this month"},"x-calls-left-today":{"schema":{"type":"integer"},"description":"Calls left today"},"x-places-left-month":{"schema":{"type":"integer"},"description":"Places left this month"},"x-data-build":{"schema":{"type":"string"},"description":"The data build"}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/NoticesAnswer"},{"$ref":"#/components/schemas/Licensed"}]}}}},"400":{"description":"A parameter is missing or out of range (not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or an unknown one (api_key)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The key's paid period is over (expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is stopped (revoked), the call is not in the plan (not_in_plan), or it came from a web page (browser)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such place or call, or a point or circle off India's land (not_found, outside; not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A limit: too_fast (retry_after), daily_limit, monthly_limit or places_limit (resets_at)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The data could not be read; the call is given back (data)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["Land notices"]}},"/v1/land-check":{"get":{"summary":"Is a survey number in a land notice?","description":"Whether the survey number appears in the schedule of a notice read so far, for that village. Not finding it does not mean the land is free of acquisition. Counts the village. API Growth and Enterprise.","parameters":[{"name":"state","in":"query","required":true,"description":"As the land records write it","schema":{"type":"string","maxLength":40}},{"name":"village","in":"query","required":true,"description":"The revenue village","schema":{"type":"string","maxLength":60}},{"name":"survey","in":"query","required":true,"description":"The survey number as written: 388/2, 12-3A, Block 30 388/2","schema":{"type":"string","maxLength":40}},{"name":"district","in":"query","required":false,"description":"Narrows a village name found in several districts","schema":{"type":"string","maxLength":60}},{"name":"block","in":"query","required":false,"description":"Kerala's survey block, if not in survey","schema":{"type":"string","maxLength":10}}],"responses":{"200":{"description":"The check","headers":{"x-calls-left-month":{"schema":{"type":"integer"},"description":"Calls left this month"},"x-calls-left-today":{"schema":{"type":"integer"},"description":"Calls left today"},"x-places-left-month":{"schema":{"type":"integer"},"description":"Places left this month"},"x-data-build":{"schema":{"type":"string"},"description":"The data build"}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/LandCheckAnswer"},{"$ref":"#/components/schemas/Licensed"}]}}}},"400":{"description":"A parameter is missing or out of range (not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or an unknown one (api_key)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The key's paid period is over (expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is stopped (revoked), the call is not in the plan (not_in_plan), or it came from a web page (browser)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such place or call, or a point or circle off India's land (not_found, outside; not counted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A limit: too_fast (retry_after), daily_limit, monthly_limit or places_limit (resets_at)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The data could not be read; the call is given back (data)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["Land notices"]}},"/v1/usage":{"get":{"summary":"Your limits and use","description":"The key's plan, limits and what it has used, and when each starts again. Not counted.","parameters":[],"responses":{"200":{"description":"Usage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageAnswer"}}}},"401":{"description":"No key, or an unknown one (api_key)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The key's paid period is over (expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is stopped (revoked), the call is not in the plan (not_in_plan), or it came from a web page (browser)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A limit: too_fast (retry_after), daily_limit, monthly_limit or places_limit (resets_at)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["Account"]}},"/v1/sources":{"get":{"summary":"Where every figure comes from","description":"Every figure's unit, year, coverage and source, and the credit line. Not counted.","parameters":[],"responses":{"200":{"description":"Sources","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"No key, or an unknown one (api_key)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The key's paid period is over (expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is stopped (revoked), the call is not in the plan (not_in_plan), or it came from a web page (browser)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A limit: too_fast (retry_after), daily_limit, monthly_limit or places_limit (resets_at)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The data could not be read; the call is given back (data)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["Account"]}}},"components":{"securitySchemes":{"key":{"type":"http","scheme":"bearer","description":"Authorization: Bearer sm_live_..."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string","description":"A code: bad_request, api_key, expired, revoked, not_in_plan, browser, not_found, outside, too_fast, daily_limit, monthly_limit, places_limit, data"},"message":{"type":"string","description":"What happened and what to do"},"retry_after":{"type":"integer","description":"Seconds to wait (too_fast)"},"resets_at":{"type":"integer","description":"When the limit starts again, unix seconds"}},"required":["error","message"]},"Licensed":{"type":"object","properties":{"data_build":{"type":"string","description":"The data's build; it changes when the map's data is updated"},"attribution":{"type":"string","description":"The credit line to show with the figures"},"licence":{"type":"string","description":"Names the business the answer is licensed to, and the terms"}},"required":["data_build","attribution","licence"]},"PlaceRef":{"type":"object","properties":{"level":{"type":"string","description":"The level","enum":["state","district","ac","pc","ua","corp","lsg","taluk","village","sd","lb","vl"]},"id":{"type":"integer","description":"Its id"},"name":{"type":"string","description":"Its name"}},"required":["level","id","name"]},"Place":{"type":"object","properties":{"level":{"type":"string","description":"The level","enum":["state","district","ac","pc","ua","corp","lsg","taluk","village","sd","lb","vl"]},"level_name":{"type":"string","description":"The level in words"},"id":{"type":"integer","description":"Its id"},"name":{"type":"string","description":"Its name"},"number":{"type":"integer","description":"A seat's number"},"reserved":{"type":"string","description":"A seat's reservation (SC, ST)"},"type":{"type":"string","description":"A Kerala unit's kind, or outside Kerala a panchayat's or town's (gp, Municipality, ...)"},"district":{"$ref":"#/components/schemas/PlaceRef"},"state":{"$ref":"#/components/schemas/PlaceRef"}},"required":["level","level_name","id","name"]},"Figure":{"type":"object","properties":{"value":{"type":["number","null"],"description":"People, voters and rupees are whole numbers; the rest have two decimal places"},"unit":{"type":"string","description":"The unit"},"year":{"type":"string","description":"The year or financial year"}},"required":["value","unit","year"]},"Figures":{"type":"object","description":"Every figure, by name (GET /v1/sources lists them with their sources). Kerala-only figures appear when the area reaches Kerala.","properties":{"population":{"$ref":"#/components/schemas/Figure"},"population_2011":{"$ref":"#/components/schemas/Figure"},"gdp_inr":{"$ref":"#/components/schemas/Figure"}},"required":["population","population_2011","gdp_inr"],"additionalProperties":{"$ref":"#/components/schemas/Figure"}},"AirQuality":{"type":["object","null"],"description":"India's AQI (0 to 500), weighted by people, on the latest day the atlas has","properties":{"aqi":{"type":"integer","description":"The AQI"},"category":{"type":"string","description":"Its band","enum":["Good","Satisfactory","Moderate","Poor","Very poor","Severe"]},"main_pollutant":{"type":"string","description":"The main pollutant"},"date":{"type":"string","description":"The day","format":"date"},"window":{"type":"string","description":"What the day covers"},"measured_share":{"type":"number","description":"Share of the people near a CPCB station (elsewhere estimated)"},"stations":{"type":"integer","description":"Stations counted"},"scale":{"type":"string","description":"The scale"}}},"DistrictShare":{"type":"object","properties":{"level":{"type":"string","description":"district"},"id":{"type":"integer","description":"The district"},"name":{"type":"string","description":"Its name"},"state":{"$ref":"#/components/schemas/PlaceRef"},"share":{"type":"number","description":"Share of the area's grid cells in it"}},"required":["level","id","name","state","share"]},"SearchAnswer":{"type":"object","properties":{"query":{"type":"string","description":"As asked"},"level":{"type":["string","null"]},"results":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/Place"}}},"required":["query","level","results"]},"PlaceAnswer":{"type":"object","properties":{"place":{"$ref":"#/components/schemas/Place"},"area_km2":{"type":"number","description":"Area"},"figures":{"$ref":"#/components/schemas/Figures"},"air_quality":{"$ref":"#/components/schemas/AirQuality"},"panchayat_scores":{"type":"object","description":"A gram panchayat (lb outside Kerala, lsg in Kerala): its Panchayat Advancement Index (Ministry of Panchayati Raj, pai.gov.in): year, overall (0-100), grade (A+ to D), themes {name: score}, before {year, overall}, source"},"districts":{"type":"array","items":{"$ref":"#/components/schemas/DistrictShare"},"description":"For seats, cities and Kerala units: the districts it spans"}},"required":["place","area_km2","figures","air_quality"]},"PointAnswer":{"type":"object","properties":{"point":{"type":"object","properties":{"lat":{"type":"number","description":"Latitude"},"lon":{"type":"number","description":"Longitude"}},"required":["lat","lon"]},"places":{"type":"object","description":"The places the point is in, by level","additionalProperties":{"$ref":"#/components/schemas/PlaceRef"}},"near_seat_boundary":{"type":"array","items":{"type":"string","enum":["ac","pc"]},"description":"Seats whose boundary is within about 1 km"},"cell":{"type":"object","properties":{"km2":{"type":"number","description":"The ~1 km grid cell's area"},"river_flood_share":{"type":"number","description":"Share in the 1-in-100-year river flood (Copernicus GloFAS)","minimum":0,"maximum":1},"landslide_share":{"type":"number","description":"Share in high or very high landslide susceptibility (IIT Delhi)","minimum":0,"maximum":1},"seen_flooded_share":{"type":"number","description":"Share seen flooded from space in any of India's 37 major floods of 2015-2025 (Copernicus GFM): the least that flooded","minimum":0,"maximum":1},"kerala_2018_flood_share":{"type":"number","description":"Kerala only: share seen flooded in August 2018","minimum":0,"maximum":1},"built_up_share":{"type":"number","description":"Share built up (GHSL 2020)","minimum":0,"maximum":1},"about":{"type":"string","description":"What the shares are"}},"required":["km2","river_flood_share","landslide_share","built_up_share"]},"air_quality":{"$ref":"#/components/schemas/AirQuality"}},"required":["point","places","near_seat_boundary","cell","air_quality"]},"CircleAnswer":{"type":"object","properties":{"circle":{"type":"object","properties":{"lat":{"type":"number","description":"Centre"},"lon":{"type":"number","description":"Centre"},"radius_km":{"type":"number","description":"Radius"},"area_km2":{"type":"number","description":"The circle's area"}},"required":["lat","lon","radius_km","area_km2"]},"area_in_india_km2":{"type":"number","description":"The part on land in India"},"figures":{"$ref":"#/components/schemas/Figures"},"air_quality":{"$ref":"#/components/schemas/AirQuality"},"districts":{"type":"array","items":{"$ref":"#/components/schemas/DistrictShare"}}},"required":["circle","area_in_india_km2","figures","air_quality","districts"]},"NoticePlace":{"type":"object","properties":{"state":{"type":"string","description":"State"},"district":{"type":"string","description":"District"},"subdistrict":{"type":["string","null"]},"village":{"type":"string","description":"Village"},"survey_numbers_listed":{"type":["integer","null"]},"area_ha":{"type":["number","null"]},"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"kerala_village":{"$ref":"#/components/schemas/PlaceRef"}},"required":["state","district","village"]},"Notice":{"type":"object","properties":{"key":{"type":"string","description":"The Gazette's key"},"date":{"type":"string","description":"Published","format":"date"},"gazette_number":{"type":["string","null"]},"title":{"type":["string","null"]},"kind":{"type":["string","null"],"description":"national_highway, railway and so on"},"stage":{"type":["string","null"]},"stage_note":{"type":["string","null"]},"pdf":{"type":["string","null"],"format":"uri"},"project":{"type":["string","null"]},"area_ha":{"type":["number","null"]},"open_for_objections":{"type":["boolean","null"]},"objections_until":{"type":["string","null"],"format":"date"},"lapses_on":{"type":["string","null"],"format":"date"},"lapsed_on":{"type":["string","null"],"format":"date"},"places":{"type":"array","items":{"$ref":"#/components/schemas/NoticePlace"}}},"required":["key","date","places"]},"NoticesAnswer":{"type":"object","properties":{"count":{"type":"integer","description":"How many notices match"},"notices":{"type":"array","items":{"$ref":"#/components/schemas/Notice"}},"more":{"type":"boolean","description":"More match than limit"},"coverage":{"type":"object","properties":{"from":{"type":["string","null"]},"to":{"type":["string","null"]},"read":{"type":["array","null"]},"about":{"type":"string","description":"What is read"}},"required":["about"]}},"required":["count","notices","more","coverage"]},"LandCheckAnswer":{"type":"object","properties":{"asked":{"type":"object"},"found":{"type":"boolean"},"how":{"type":["string","null"]},"number":{"type":["string","null"]},"block":{"type":["string","null"]},"matches":{"type":"array","items":{"type":"object"}},"coverage":{"type":["array","null"]},"about":{"type":"string","description":"What found means"}},"required":["asked","found","how","number","block","matches","coverage","about"]},"UsageAnswer":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string","description":"Key id"},"prefix":{"type":"string","description":"The key's first characters"},"org":{"type":"string","description":"Business"},"paid_until":{"type":"integer","description":"Unix seconds"}},"required":["id","prefix","org","paid_until"]},"plan":{"type":"string","description":"Plan id"},"plan_name":{"type":"string","description":"Plan"},"month":{"type":"string","description":"YYYY-MM, India time"},"calls":{"type":"object","properties":{"used":{"type":"integer","description":""},"limit":{"type":"integer","description":""},"today":{"type":"integer","description":""},"day_limit":{"type":"integer","description":""},"per_minute":{"type":"integer","description":""},"resets_at":{"type":"integer","description":""},"day_resets_at":{"type":"integer","description":""}},"required":["used","limit","today","day_limit","per_minute","resets_at","day_resets_at"]},"places":{"type":"object","properties":{"used":{"type":"integer","description":""},"limit":{"type":"integer","description":""},"about":{"type":"string","description":""}},"required":["used","limit","about"]},"radius_km":{"type":"object","properties":{"min":{"type":"number","description":""},"max":{"type":"number","description":""}},"required":["min","max"]},"notices":{"type":"boolean"}},"required":["key","plan","plan_name","month","calls","places","radius_km","notices"]}}}}