我试图在缩放时抓取基于 esri 的地图上显示的每所学校的所有数据,我找到了一个 API,它为我提供了所有这些详细信息,但仅限于位于边界框 min 和 max 内的学校价值观。
这是网址:https://schoolgis.nic.in/
这是API的curl:
curl 'https://geoportal.nic.in/nicgis/rest/services/SCHOOLGIS/Schooldata/MapServer/0/query?f=json&returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=%7B%22xmin%22%3A9213828.419511694%2C%22ymin%22%3A2100859.775531497%2C%22xmax%22%3A9239899.12963852%2C%22ymax%22%3A2126930.4856583253%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%7D%7D&geometryType=esriGeometryEnvelope&inSR=102100&outFields=*&outSR=102100&quantizationParameters=%7B%22mode%22%3A%22view%22%2C%22originPosition%22%3A%22upperLeft%22%2C%22tolerance%22%3A76.43702828507352%2C%22extent%22%3A%7B%22xmin%22%3A68.5015470000764%2C%22ymin%22%3A6.8114540002900235%2C%22xmax%22%3A97.02722200066553%2C%22ymax%22%3A35.03211800055593%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%2C%22latestWkid%22%3A4326%7D%7D%7D' \
-H 'Accept: */*' \
-H 'Accept-Language: en-GB,en;q=0.7' \
-H 'Connection: keep-alive' \
-H 'If-None-Match: 7VikZuPcKrKICyY6_6cd91a5e' \
-H 'Origin: https://schoolgis.nic.in' \
-H 'Referer: https://schoolgis.nic.in/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: cross-site' \
-H 'Sec-GPC: 1' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \
-H 'sec-ch-ua: "Brave";v="119", "Chromium";v="119", "Not?A_Brand";v="24"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Linux"' \
--compressed
我无法找到一种方法来获取整个印度的所有学校数据,我想找到一种方法来操纵这个 API 以获得结果,或者任何解决方案都值得赞赏。
this包含有关地图范围的信息,也许会有帮助