List Watch Areas
Use this query to list public watch areas at a given location.
| General | |
|---|---|
| URL Format | http://[locale].seeclickfix.com/[devapi|api]/watchers/list.[format] |
| Example | http://seeclickfix.com/api/watchers/list.xml?at=New+Haven,+CT |
| HTTP Method | GET |
| Valid Data Formats | xml, json |
| Permissions | read only |
Required Parameters
Area in the form of one area type below.
| Parameter | Format | Description |
|---|---|---|
| at, zoom |
|
Area will be the bounding box of a 650px X 650px map at the zoom level given surrounding the geocoded location. If no zoom is give, zoom will be determined from geocoding accuracy (i.e. street, city, or country level). |
| lat, lng, and zoom |
|
Area will be the bounding box of a 650px X 650px google map at the zoom level given surrounding the lat/lng location given. |
Optional Parameters
- radius - Radius to search for watch areas by. Radius is in units of degrees. Default is 1.
- watcher_search - Search terms to limit the results by.
- page - Page to display the results as. Results are sorted by distance from the required parameter area's center. Default is 1.
- num_results - Number of results to return. Default is 20
Attributes and Structure
This query returns an array of watch areas. A watch area has the following attributes:
- created_at - Timestamp of when the watch area was created.
- id -
- locale - Locale emails will be delivered in.
- max_lat - Lat/Lng coordinates of a bounding box.
- max_lng - Lat/Lng coordinates of a bounding box.
- min_lat - Lat/Lng coordinates of a bounding box.
- min_lng -Lat/Lng coordinates of a bounding box.
- public_description - Text description of the watch area.
- public_token - Public unique token for the watch area. Used in some search queries.
- search - Search terms to filter results by.
- send_on_comment - Yes/No send email on watch area if a comment was made.
- title - Title of watch area.
- updated_at - Timestamp the watch area was last updated.
Example
http://seeclickfix.com/api/watchers/list.xml?at=new+haven&num_results=30
This query says show me the closest 30 watch areas to “New
Haven, CT”.
<watchers type="array">
<watcher>
<created-at type="timestamp">Thu Jan 08 16:29:22 UTC 2009</created-at>
<id type="integer">552</id>
<locale>en</locale>
<max-lat type="float">41.3143696793156</max-lat>
<max-lng type="float">-72.9131698608398</max-lng>
<min-lat type="float">41.3003787722824</min-lat>
<min-lng type="float">-72.9354000091553</min-lng>
<public-description>
This is the watch area for the 1'st policing district Lt. R. Sweeney
</public-description>
<public-token>475c53cfd808c29bc430e3b438ad995fdb4ec6b8</public-token>
<search>
prost drug speed cop police illegal shoes stolen gun theft hooker loitering
</search>
<send-on-comment type="boolean">false</send-on-comment>
<title>
Downtown Wooster Square Policing District - Lt. Rebecca Sweeney
</title>
<updated-at type="timestamp">Thu Aug 20 11:30:46 UTC 2009</updated-at>
</watcher>
-
Reporting Issues
- Help! I have no idea where to put my issue on the map!
- I'm trying to report an issue, but when I click on its address the red marker jumps somewhere else.
- When I type the name of the town I want into the search bar, I get taken somewhere else.
- I want to change something about an issue after I reported it.
- Closing an Issue
- View all (1 more)
-
SeeClickFix Pro
-
Facebook Application
-
My Profile
-
API
-
Watch Areas
-
Frequently Asked Questions