Transitland

transitland

Next departures at a stop. Asked beside the web search when a question needs it, and served first with the time it was read.

TravelGrounder’s key

How it works

  1. You search as usual, over HTTP or MCP, and Grounder searches the web.
  2. For a question about right now that Transitland can answer, Grounder also asks Transitland, beside the web search.
  3. The answer from Transitland is served first, with the time it was read, and routing.live_calls lists it.

Grounder holds a key for Transitland and reads it with that.

Using it

Ask the way you would ask any search. Grounder asks Transitland when the question needs what the source holds.

A question recorded for Transitland

next L train from Bedford Av

Routing sent it to Octen and asked Transitland, answered in 1,421 ms.

Set Transitland to one of these under Specialized APIs on your account page.

SettingWhat it does
OnAsked when a question needs what the source holds.
AlwaysAsked on every search.
OffNever asked.

To set it for one search, send routing_settings with the request. The docs list the rest of the request.

POST /v1/searchJSON
{
  "query": "next L train from Bedford Av",
  "routing_settings": {
    "specialized": { "transitland": { "use": "always" } }
  }
}

Add your own key for Transitland under Specialized APIs and your searches use it there.