Example • intermediate • transit
Build a Trip Assistant
Build a Trip Assistant
Use SmartAPIs transit routes and location context to create a grounded trip-planning experience that stays easy to understand at first glance.
Title
Build a Trip Assistant
Problem solved
Return route options for a metro-aware commute or city trip assistant.
Required route or routes
GET /v1/agent/context/{location_id}, GET /v1/transit/routes
Auth expectation
Context is public discovery. /v1/transit/routes requires
X-API-Key with transit:read.
Request snippet
curl
curl -H "X-API-Key: $SMARTAPIS_API_KEY" \
"https://smartapis.net/v1/transit/routes?region_id=gta&q=subway&limit=5"
Response snippet
{
"items": [{
"route_id": "route_gta_001",
"display_name": "Line 1 Yonge-University",
"region_id": "gta"
}],
"count": 1
}
Next step
Combine with environment alerts to make weather-aware commute suggestions.
Caveats / legal posture
Informational only. Preserve source context and do not represent summaries as operator-issued instructions.