Methods

Method detail for: 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.

Valid Datasets

DatasetDataset DetailsMethod Parameters
CountiesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Census CBSAsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Canada DivisionsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics College Campus BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Canada ProvincesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Carrier RoutesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Carrier Route CentroidsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Canada SubdivisionsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Destination & Venue BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Hospital BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Metro BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Census MCDsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics City PointsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Neighborhood Boundaries EuropeClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Neighborhood Boundaries North AmericaClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Neighborhood Centroids North AmericaClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Neighborhood Boundaries Rest Of WorldClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Neighborhood Boundaries WorldwideClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Census PlacesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics +Residential BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

US StatesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics School Attendance Zone BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics School District BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Subdivision BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Shopping BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Private SchoolsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Public SchoolsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

ZIP CodesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

ZIP Code CentroidsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Sample Request and Return Data

<?xml version="1.0" encoding="UTF-8" ?> <data> <auth> <loginname>your_username</loginname> <key>your_api_key</key> </auth> <request> <dataset>Z</dataset> <method>getGeoAttByRadius</method> <returnType>xml</returnType> <returnGeoType>wkt</returnGeoType> <parameters> <lat>40.713734</lat> <lon>-74.011683</lon> <radius>1</radius> <fields>zip,name,ziptype</fields> </parameters> </request> </data>
{ "data":{ "auth":{ "loginname":"your_username", "key":"your_api_key" }, "request":[ { "dataset":"Z", "method":"getGeoAttByRadius", "returnType":"json", "parameters":{ "lat":"40.713734", "lon":"-74.011683", "radius":"1", "fields":"zip,name,ziptype" } } ] } }
<?xml version="1.0" encoding="UTF-8" ?> <data> <resultcode>0</resultcode> <message>Return OK</message> <requestid>03-14513</requestid> <request> <item> <zip>10279</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10281</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10282</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10007</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10006</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10271</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10045</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10278</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10272</zip> <name>NEW YORK</name> <ziptype>PO BOX</ziptype> </item> <item> <zip>10013</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10265</zip> <name>NEW YORK</name> <ziptype>UNIQUE</ziptype> </item> <item> <zip>10280</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10270</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10038</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10043</zip> <name>NEW YORK</name> <ziptype>UNIQUE</ziptype> </item> <item> <zip>10004</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10041</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> <item> <zip>10005</zip> <name>NEW YORK</name> <ziptype>NON-UNIQUE</ziptype> </item> </request> </data>
[ { "resultcode":0, "message":"Return OK", "requestid":"03-14514", "request":[ [ { "zip":"10279", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10281", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10282", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10007", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10006", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10271", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10045", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10278", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10272", "name":"NEW YORK", "ziptype":"PO BOX" }, { "zip":"10013", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10265", "name":"NEW YORK", "ziptype":"UNIQUE" }, { "zip":"10280", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10270", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10038", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10043", "name":"NEW YORK", "ziptype":"UNIQUE" }, { "zip":"10004", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10041", "name":"NEW YORK", "ziptype":"NON-UNIQUE" }, { "zip":"10005", "name":"NEW YORK", "ziptype":"NON-UNIQUE" } ] ] } ]