Find River Mile Markers Near a Location
usace_rivermile_find_markersFind USACE river mile markers near a point or within a polygon. Submit latitude/longitude with a radius for proximity search, or a GeoJSON geometry to retrieve markers that intersect the area.
Instructions
Find USACE river mile markers near a point or within a geometry.
Accepts EITHER a lat/lon pair (+ radius_meters) OR a GeoJSON geometry string.
Use lat+lon when: "What river mile markers are near 31.45, -92.71?", "Markers within 2 km of this boat ramp?" Use geometry when: "Which markers fall inside this county polygon / bbox?", "Markers along this river-reach corridor?"
For point (lat/lon) queries, each returned marker includes 'distance_m' (great-circle meters from the query point) and results are sorted nearest-first. Geometry queries return markers intersecting the geometry.
Returns: { "count": int, # markers returned (after limit) "truncated": bool, # true if more markers matched than returned "markers": [ { name, MILE, RIVER_NAME, RIVER_CODE, RIVER_NUMB, LONGITUDE1, LATITUDE1, SOURCE, distance_m? }, ... ], "query": { "type": str, "radius_meters": float|null, "crs_epsg": int }, "provenance": { source agency, dataset, service URL, layer, CRS, retrieved_utc } }
Error responses:
"Error: supply either lat+lon or geometry, not both (or neither)"
"Error: 'geometry' is not valid JSON: ..."
"Error: unsupported geometry type ..."
"Error: River Mile request failed: ..."
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude in decimal degrees (WGS84). Use with 'lon' for a proximity search. Omit when supplying 'geometry'. | |
| lon | No | Longitude in decimal degrees (WGS84). Use with 'lat' for a proximity search. Omit when supplying 'geometry'. | |
| limit | No | Maximum number of markers to return. Default 25. | |
| geometry | No | GeoJSON geometry object as a JSON string. Supported types: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon. Also accepts BoundingBox shorthand: {"type": "BoundingBox", "bbox": [minLon, minLat, maxLon, maxLat]}. All coordinates must be WGS84 decimal degrees. Supply either this OR lat+lon, not both. | |
| radius_meters | No | Search radius in meters around the lat/lon point. Ignored when 'geometry' is supplied. Default 5000 (5 km). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||