| description | Address ↔ coordinates + distance + traffic-aware routing. Uses Nominatim (OSM, free) + HERE API (30K/month free tier, includes real-time traffic). Commands: 'scripts/geocode.py forward --address "רחוב הרצל 1, תל אביב"', 'scripts/geocode.py reverse --lat 32.08 --lon 34.78', 'scripts/geocode.py distance --from "תל אביב" --to "חיפה"', 'scripts/geocode.py route --from "ראש העין" --to "חיפה"'. Trigger: קואורדינטות, כתובת, מרחק, זמן נסיעה, עומסים, GPS, traffic. |
| metadata | {"clawdbot":{"emoji":"📍","commands":["forward","reverse","distance","bbox","route","alternative"],"arg_template":"scripts/geocode.py {command} {args}","requires":{"bins":["python"],"python_libs":["requests"]},"env_vars":[{"name":"HERE_API_KEY","optional":true,"description":"HERE API key for traffic data"},{"name":"HERE_MONTHLY_CAP","optional":true,"default":"25000","description":"Monthly API call cap (safety margin under 30K free tier)"}],"commands_schema":{"forward":{"properties":{"address":{"type":"string","description":"Address to geocode (e.g. \"רחוב הרצל 1, תל אביב\")"}},"required":["address"]},"reverse":{"properties":{"lat":{"type":"number","description":"Latitude"},"lon":{"type":"number","description":"Longitude"}},"required":["lat","lon"]},"distance":{"properties":{"from":{"type":"string","description":"Starting location name"},"to":{"type":"string","description":"Destination location name"},"from_lat":{"type":"number","description":"Starting latitude (alternative to from)"},"from_lon":{"type":"number","description":"Starting longitude (alternative to from)"},"to_lat":{"type":"number","description":"Destination latitude (alternative to to)"},"to_lon":{"type":"number","description":"Destination longitude (alternative to to)"}}},"bbox":{"properties":{"address":{"type":"string","description":"Address to get bounding box for"}},"required":["address"]},"route":{"properties":{"from":{"type":"string","description":"Starting location name"},"to":{"type":"string","description":"Destination location name"},"from_lat":{"type":"number","description":"Starting latitude (alternative to from)"},"from_lon":{"type":"number","description":"Starting longitude (alternative to from)"},"to_lat":{"type":"number","description":"Destination latitude (alternative to to)"},"to_lon":{"type":"number","description":"Destination longitude (alternative to to)"},"waypoint":{"type":"string","description":"Intermediate waypoint (repeatable)"},"alternatives":{"type":"integer","description":"Number of alternative routes","default":1}}},"alternative":{"properties":{},"description":"Get alternative routes for previous route query"}}}} |