check_traffic_controls
Check OpenStreetMap for traffic signals and stop signs at a junction, within an area, or along a route corridor; returns control type, counts, coordinates, and a verification map.
Instructions
Check OpenStreetMap for traffic signals (traffic lights) and stop signs at a junction, within a radius of a coordinate/place, across a bounding box/area, or along a route corridor. Returns explicit booleans (has_traffic_signal, has_stop_sign), junction classification (control_type: 'traffic_signals' | 'stop_sign' | 'both' | 'none'), separate counts, exact coordinates, and a shareable verification map.
MODES:
Junction / Coordinate: pass a point in 'bbox' (e.g. '40.7580,-73.9855') with optional 'radius_meters' (defaults to 35m).
Bounding box / Area: pass a bbox or 'location' (without 'radius_meters') to count or list all traffic signals and stop signs inside.
Route corridor (by endpoints): pass 'origin' and 'destination' (plus optional 'profile': driving/walking/cycling) to route via OSRM and inspect traffic controls along the route in one call.
Route corridor (by geometry): pass 'route_geometry' (the GeoJSON LineString from calculate_route) with optional 'radius_meters' (defaults to 20m) to evaluate traffic signals and stop signs along a route in travel order.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_traffic_controls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | Point 'lat,lng', bounding box 'lat1,lng1,lat2,lng2', WKT, GeoJSON, tile 'z/x/y', or ogrinfo extent. For a single point, 'radius_meters' defaults to 35m if omitted. | |
| limit | No | Maximum total elements to return across traffic_signals and stop_signs when count_only is false. Default is 200 (max 1000). | |
| offset | No | Pagination offset when count_only is false. Default is 0. | |
| origin | No | Route origin ('lat,lng' or place name) when evaluating traffic controls directly between two points. Must be paired with 'destination'. | |
| profile | No | Routing profile when using 'origin' and 'destination': 'driving' (default), 'walking', or 'cycling'. | |
| location | No | A text location or intersection to check (e.g. 'Manhattan', '5th Ave and 42nd St, New York'). Provide 'location', 'bbox', 'route_geometry', or 'origin'+'destination'. | |
| count_only | No | If true, returns presence booleans and counts without individual feature coordinates. Defaults to false. | |
| destination | No | Route destination ('lat,lng' or place name) when evaluating traffic controls directly between two points. Must be paired with 'origin'. | |
| radius_meters | No | Search radius in meters. Enables circle mode around a point/location (defaults to 35m for a single point) or corridor width around a route (defaults to 20m). | |
| route_geometry | No | GeoJSON LineString ({ type: 'LineString', coordinates: [[lng, lat], ...] }) from calculate_route to find traffic signals and stop signs along a route corridor. | |
| timeout_seconds | No | Overpass server query timeout in seconds. Default is 25. | |
| include_crossings | No | If true, also treats signalized pedestrian crossings (highway=crossing with crossing=traffic_signals or crossing:signals=yes) as traffic signals. Defaults to false. | |
| use_area_boundary | No | If true (default), uses exact OSM administrative boundary polygon for named locations when available. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| counts | Yes | ||
| offset | No | ||
| complete | Yes | ||
| has_more | No | ||
| warnings | Yes | ||
| share_url | Yes | ||
| truncated | No | ||
| count_only | Yes | ||
| provenance | Yes | ||
| stop_signs | No | ||
| next_offset | No | ||
| osm_area_id | No | ||
| search_mode | Yes | ||
| alternatives | No | ||
| control_type | Yes | ||
| distance_from | No | ||
| has_stop_sign | Yes | ||
| matched_place | No | ||
| route_summary | No | ||
| returned_counts | No | ||
| traffic_signals | No | ||
| has_traffic_signal | Yes |