api.maponics.com logo

Documentation > Public Methods > Method Detail: getGeoAttByRadius

This request requires you to submit a latitude and longitude coordinate pair, field list, and a radius in miles. The API will spatially determine the number of objects that are wholly or partially within that radius and return a list of attributes for those objects.

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>getGeoAttByRadius</method> <parameters> <lat>40.713734</lat> <lon>-74.011683</lon> <radius>10</radius> <fields>nid,neighborhd</fields> <submatch>N</submatch> </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>7086</nid> <neighborhd>Colgate Center</neighborhd> </item> <item> <nid>7087</nid> <neighborhd>Downtown - Van Vorst Park</neighborhd> </item> <item> <nid>7088</nid> <neighborhd>Exchange Place North</neighborhd> </item> <item> <nid>7089</nid> <neighborhd>Hamilton Park</neighborhd> </item> <item> <nid>7090</nid> <neighborhd>Harsimus Cove</neighborhd> </item> <item> <nid>7091</nid> <neighborhd>Hudson Exchange</neighborhd> </item> <item> <nid>7092</nid> <neighborhd>Newport</neighborhd> </item> <item> <nid>7093</nid> <neighborhd>Paullus Hook</neighborhd> </item> <item> <nid>7094</nid> <neighborhd>Waldo (Warehouse/Powerhouse)</neighborhd> </item> <item> <nid>7095</nid> <neighborhd>Central Business District</neighborhd> </item> <item> <nid>7098</nid> <neighborhd>Forest Hill</neighborhd> </item> <item> <nid>7099</nid> <neighborhd>Lower Clinton Hill</neighborhd> </item> </request> </data>