api.maponics.com logo

Documentation > Public Methods > Method Detail: getGeoAttByState

This request requires you to submit a two-letter State abbreviation. The API will return a list of attributes for all objects of the selected type within that state.

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>N</dataset> <method>getGeoAttByCity</method> <parameters> <state>NY</state> <submatch>N</submatch> <fields>nid,neighborhd</fields> </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> <nid>7658</nid> <neighborhd>Tribeca</neighborhd> </item> <item> <neighborhd>Belmont</neighborhd> <nid>7517</nid> </item> <item> <neighborhd>Bronxdale</neighborhd> <nid>7518</nid> </item> <item> <neighborhd>Bronxwood</neighborhd> <nid>7519</nid> </item> </request> </data>