api.maponics.com logo

Documentation > Public Methods > Method Detail: getSchoolByCoord

This request requires you to submit a latitude and longitude coordinate pair. The API will spatially determine the school attendance zones that those coordinates are within, and then return those attendance zone IDs along with the NCES District ID and District Name, the NCES School ID and School Name, and the education level of the school, for each attendance zone returned.

To see the parameters that are required by a specific dataset when calling this method, please select the dataset from the list below:

  Required parameters for this dataset/method combination

Sample Request XML

Please remember that this is merely a static example of an API request. For a real-world API request, the dataset code would reflect the actual dataset called, and the paramters would then follow from that dataset. To see a list of the required parameters for any given dataset with this method, select the dataset in the drop down list above.

<?xml version="1.0" encoding="UTF-8" ?> <data> <auth> <loginname>your_username</loginname> <key>your_api_key</key> </auth> <request> <dataset>SCH</dataset> <method>getSchoolByCoord</method> <parameters> <lat>37.325021</lat> <lon>-121.902924</lon> </parameters> </request> </data>

Sample Response XML

Please remember that this is merely sample XML and the returned items shown are in no way representative of real-world data.

<?xml version="1.0" encoding="UTF-8" ?> <data> <request> <item> <mx_id>CA-SAN JOSE-2076-CA-PB3980</mx_id> <nces_disid>0634590</nces_disid> <nces_schid>063459005720</nces_schid> <sch_name>HERBERT HOOVER MIDDLE</sch_name> <ed_level>M</ed_level> <district_name>SAN JOSE UNIFIED</district_name> </item> <item> <mx_id>CA-SAN JOSE-2076-CA-PB3976</mx_id> <nces_disid>0634590</nces_disid> <nces_schid>063459005713</nces_schid> <sch_name>GARDNER ELEMENTARY</sch_name> <ed_level>P</ed_level> <district_name>SAN JOSE UNIFIED</district_name> </item> <item> <mx_id>CA-SAN JOSE-2076-CA-PB4006</mx_id> <nces_disid>0634590</nces_disid> <nces_schid>063459011455</nces_schid> <sch_name>LINCOLN PLUS HIGH</sch_name> <ed_level>M</ed_level> <district_name>SAN JOSE UNIFIED</district_name> </item> <item> <mx_id>CA-SAN JOSE-2076-CA-PB4006</mx_id> <nces_disid>0634590</nces_disid> <nces_schid>063459011455</nces_schid> <sch_name>LINCOLN PLUS HIGH</sch_name> <ed_level>H</ed_level> <district_name>SAN JOSE UNIFIED</district_name> </item> <item> <mx_id>CA-SAN JOSE-2076-CA-PB4006</mx_id> <nces_disid>0634590</nces_disid> <nces_schid>063459011455</nces_schid> <sch_name>LINCOLN PLUS HIGH</sch_name> <ed_level>P</ed_level> <district_name>SAN JOSE UNIFIED</district_name> </item> </request> </data>