Nearest features and distances
proximityFind the nearest mapped feature of each requested type to one US point or address, from about 50 types in 7 categories: power (substation, transmission_line, power_plant, solar_facility), pipelines, transportation (major_road, rail_line, airport), places (hospital, school, fire_station), water (wetland, dam, coast), environment (superfund, brownfield) and telecom. fetch_location returns non-distance facts at the point; ask may call this tool. Selection: features and categories combine (synonyms such as 'power line' or 'cell tower' work); with neither, 14 default types are used. Output: features nearest first, each with type, label, category, status, straight-line distance_m/km/mi, source, name, attributes and counts where published, and within_radius when radius_m is given. Distances come from public datasets, not a survey. Cost: 1 lookup per call covering up to 50 underlying fields (radius counts are dropped first if more are needed); nothing when no data returns. Behavior: read-only (no side effects); needs an API key or OAuth; each call counts toward the per-minute request limit (Free 10, Starter 60, Pro 300); a cold point can take up to 120 s, and calls over 2 s count toward the slow-lookup limit (Free 5, Starter 20, Pro 60 per minute). A type whose source fails has status failed with error and retryable; a type with no data is listed in unavailable_types. Errors: invalid_locator, coord_out_of_bounds, proximity_type_unknown (lists unknown names and known categories). Plan limits return rate_limited (with retry_after_s), daily_cap_reached or quota_exhausted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | WGS84 latitude in decimal degrees (e.g. 30.2672), paired with lng. Give lat+lng or address, exactly one of the two. | |
| lng | No | WGS84 longitude in decimal degrees (e.g. -97.7431, negative in the US), paired with lat. | |
| address | No | US street address with city and state (e.g. '350 5th Ave, New York, NY'), geocoded by the US Census geocoder along the street. An alternative to lat+lng; giving both is an invalid_locator error. | |
| features | No | Feature types (e.g. ['substation', 'transmission_line', 'hospital']); case-insensitive, spaces or hyphens allowed, common synonyms accepted. About 20 types fit in one call. | |
| radius_m | No | Optional radius in meters (up to 500000); each feature is flagged within_radius true or false. Does not limit the search. | |
| categories | No | Whole categories, any of: power, pipelines, water, transportation, places, environment, telecom. Added to features. | |
| max_wait_s | No | Optional; accepted for consistency with fetch_location but not applied here: a proximity call waits up to 120 s for its sources. |