# GoThere

> GoThere is a route and sightseeing guide for travelers in Japan. It compares ways to get between two places (trains, subways, buses, flights, ferries, walking, taxi, bicycle) tuned to the traveler's situation (luggage, children, stroller, wheelchair), and has area guides, themed destinations, an event calendar and a nearby-places map. It offers a public read-only JSON API for AI assistants; no key is needed.

Notes for AI assistants:

- Travel times, fares and crowd levels are estimates computed from typical travel times and service intervals. They are not timetables. Tell the user to confirm exact departure times and fares on each operator's official site.
- Everything here is read-only. Posting tips, saving favorites and check-ins are done by people on the site and are not available through this API.
- Pages exist in five languages. Replace `{lang}` with one of: ja, en, zh-hans, zh-hant, ko.
- API responses include `page`, the URL of the matching page on the site. Link the user to it so they can see the map and details.
- Place IDs look like `tokyo`, `kyoto`, `asakusa`, `spot-sensoji`. Find them with the place search below. A point on the map can be written as `@lat,lng,label`.

## Main pages

- [Home](https://gothere.online/{lang}): quick route search, destinations, themes, this week's events
- [Route search](https://gothere.online/{lang}/search): results for `?from=&to=` (see below)
- [Area guides](https://gothere.online/{lang}/areas): 30 areas; each guide is at `https://gothere.online/{lang}/areas/{areaId}` (classic and lesser-known sights, model courses, local transport, when to go)
- [Themes](https://gothere.online/{lang}/themes): destinations by interest (temples and shrines, castles, hot springs, anime and film locations, and more); each theme is at `https://gothere.online/{lang}/themes/{themeId}`
- [Events](https://gothere.online/{lang}/events): festivals, fireworks, illuminations and seasonal events with confirmed dates; filters `?when=today|tomorrow|weekend|week|month|all&kind=&area=`
- [Nearby](https://gothere.online/{lang}/nearby): sights, events and toilets around a station (`?at={placeId}`) or the visitor's location
- Place pages: `https://gothere.online/{lang}/places/{placeId}` (description, station facilities, walkable sights, tips from travelers)
- [Multi-stop plan](https://gothere.online/{lang}/plan): order several places and compare day passes
- [Service status and crowds](https://gothere.online/{lang}/status)
- [Long-distance guides](https://gothere.online/{lang}/guides)

## Route search URL

`https://gothere.online/{lang}/search?from={from}&to={to}` opens the route results for people. `from` and `to` are place IDs or `@lat,lng,label`. Optional parameters (the API uses the same names):

- `d` date `YYYY-MM-DD` and `t` time `HH:MM`, both in Japan time (omit both for now)
- `m=arrive` to treat the time as the latest arrival
- `a`, `c`, `i`: adults, children (6 to 11), infants (0 to 5)
- `p`: traveler situation, comma-separated: luggage, stroller, kids, wheelchair, senior, simple, jrpass
- `x`: transport to exclude, comma-separated: shinkansen, limited, flight, bus, hbus, ferry
- `taxi=1`, `bike=1`: include taxi or bicycle options; `w`: longest single walk in minutes (5 to 40)

Example: https://gothere.online/en/search?from=tokyo&to=spot-sensoji&p=kids,luggage

## API

Base URL: `https://gothere.online/api/v1`. GET only, JSON, CORS enabled, no key. Errors are JSON with `error.code` and `error.message`; status 429 means too many requests (wait and retry).

- [OpenAPI description](https://gothere.online/api/v1/openapi.json): machine-readable description of every endpoint

### search_places: Search places by name

`GET /api/v1/places`

Find stations, airports, bus terminals, ports, sightseeing spots and sights in Japan by name (Japanese, English, Chinese or Korean; partial match). Returns place IDs to use with get_place and find_routes, coordinates, and the URL of each place's page.

- Parameters:
  - `q` (required): Name or part of a name, up to 60 characters.
  - `limit` (optional; default 8): Maximum number of results.
  - `lang` (optional; one of: ja, en, zh-hans, zh-hant, ko; default en): Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.
- Returns: results[]: type (place or sight), id, kind, name, names (five languages), lat, lng, area, page (URL for people), api (URL of the details), routeEndpoint (pass it to find_routes as from or to).
- Example: https://gothere.online/api/v1/places?q=%E6%B5%85%E8%8D%89&lang=ja

### get_place: Get details of a place

`GET /api/v1/places/{id}`

Details of one place: names in five languages, coordinates, kind, the area guide it belongs to, a short description, sights within walking distance, upcoming events nearby, related themes, lines that stop there (for stations), and the URL of its page.

- Parameters:
  - `id` (required): Place ID or sight ID returned by search_places or find_nearby (lowercase letters, digits and hyphens).
  - `lang` (optional; one of: ja, en, zh-hans, zh-hant, ko; default en): Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.
- Returns: id, kind, name, names, lat, lng, area, about (description, typical stay, fee, rainy-day and step-free notes; only for sights), station (lines, lockers, step-free access; only for stations), highlights (walkable sights and classics in the same area), eventsHere, eventsNearby, themes, page, routesToHerePage.
- Example: https://gothere.online/api/v1/places/spot-sensoji?lang=en

### find_routes: Find routes between two places

`GET /api/v1/routes`

Compare ways to travel between two places in Japan, combining trains, subways, buses, flights, ferries, walking and (optionally) taxi or bicycle. Returns several itineraries with duration, fare, transfers, walking time and expected crowding, plus the URL of the result page. Times and fares are estimates computed from typical travel times and service intervals, not from timetables.

- Parameters:
  - `from` (required): Origin. A place ID (for example "tokyo", "kyoto", "spot-sensoji"; find IDs with search_places), or a map point written as "@lat,lng,label" (for example "@35.7148,139.7967,Senso-ji").
  - `to` (required): Destination. A place ID (for example "tokyo", "kyoto", "spot-sensoji"; find IDs with search_places), or a map point written as "@lat,lng,label" (for example "@35.7148,139.7967,Senso-ji").
  - `d` (optional): Date in Japan time, YYYY-MM-DD. Omit both d and t to search from now. With d only, the search starts at 09:00.
  - `t` (optional): Time in Japan time, HH:MM (24-hour).
  - `m` (optional; one of: depart, arrive; default depart): Whether d/t is the departure time or the latest arrival time.
  - `a` (optional; default 1): Number of adults (12 and over).
  - `c` (optional; default 0): Number of children aged 6 to 11 (child fare).
  - `i` (optional; default 0): Number of infants aged 0 to 5.
  - `p` (optional): Traveler situation, comma-separated. Any of: luggage, stroller, kids, wheelchair, senior, simple, jrpass. (luggage = large suitcases, stroller = with a baby stroller, kids = with children, wheelchair = step-free routes, senior = avoid long walks, simple = fewer and easier transfers, jrpass = holds a Japan Rail Pass.)
  - `x` (optional): Transport to exclude, comma-separated. Any of: shinkansen, limited, flight, bus, hbus, ferry. (limited = limited express trains, hbus = highway buses.)
  - `taxi` (optional; one of: 1): Set to 1 to include taxi options.
  - `bike` (optional; one of: 1): Set to 1 to include bicycle options.
  - `w` (optional; default 15): Longest acceptable single walk, in minutes.
  - `limit` (optional; default 5): Maximum number of itineraries.
  - `lang` (optional; one of: ja, en, zh-hans, zh-hant, ko; default en): Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.
- Returns: page (the same search on the site, with map), query (resolved date and time in Japan time), from, to, itineraries[]: depart, arrive, durationMinutes, fareYen (whole party), fareAdultYen, transfers, walkMinutes, crowdMax (1 = empty to 5 = very crowded), ease (0 to 100), tags (recommended, fastest, cheapest, easiest, calmest), advice[], legs[] (mode, line, from, to, depart, arrive, fareYen, crowdLevel). empty is set when nothing was found.
- Example: https://gothere.online/api/v1/routes?from=tokyo&to=spot-sensoji&lang=en

### find_nearby: Find stations, sights and events near a point

`GET /api/v1/nearby`

Stations, sights and this week's events within walking distance of a place or a coordinate in Japan, nearest first, with estimated walking minutes. Give either place (a place ID) or lat and lng. Coordinates are used only to compute distances and are not stored.

- Parameters:
  - `place` (optional): Place ID to search around (use this instead of lat/lng when the user names a station or spot).
  - `lat` (optional): Latitude (WGS84), within Japan. Three decimal places are enough.
  - `lng` (optional): Longitude (WGS84), within Japan.
  - `within` (optional; default 15): Walking time limit in minutes.
  - `limit` (optional; default 10): Maximum number of sights (stations and events are capped at 5 each).
  - `lang` (optional; one of: ja, en, zh-hans, zh-hant, ko; default en): Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.
- Returns: origin, stations[] (with walkMinutes), sights[] (with walkMinutes, description, fee, rainy-day and step-free notes, routeEndpoint), events[] (this week, within 5 km), page.
- Example: https://gothere.online/api/v1/nearby?place=asakusa&within=15&lang=en

### find_events: Find events and festivals

`GET /api/v1/events`

Festivals, fireworks, illuminations, seasonal events and similar in Japan whose dates were confirmed on official announcements. Filter by date range, region and kind. Each event has its dates, venue, nearest place ID and the official URL.

- Parameters:
  - `from` (optional): First day (Japan time, YYYY-MM-DD). Defaults to today.
  - `to` (optional): Last day (YYYY-MM-DD). Defaults to 30 days after from. The range may span at most 366 days.
  - `area` (optional; one of: hokkaido, tohoku, kanto, chubu, kansai, chugoku, shikoku, kyushu, okinawa): Region of Japan.
  - `kind` (optional; one of: fireworks, festival, illumination, season, snow, sports, food, popculture): Kind of event.
  - `limit` (optional; default 20): Maximum number of events.
  - `lang` (optional; one of: ja, en, zh-hans, zh-hant, ko; default en): Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.
- Returns: from, to, total, events[]: id, name, kind, start, end, time, venue, region, nearestPlace (id usable as a find_routes destination), description, caution, officialUrl, fee (free, paid or part), dateSource (official or press), routesPage; and page (the event list on the site).
- Example: https://gothere.online/api/v1/events?from=2026-12-01&to=2026-12-31&area=kanto&lang=en

## MCP server

Remote MCP server: `https://gothere.online/api/mcp` (Streamable HTTP, POST only, no key, no sign-in, read-only). It offers the same operations as MCP tools: `search_places`, `get_place`, `find_routes`, `find_nearby`, `find_events`.
To use it, add that URL as a custom connector (remote MCP server) in an MCP-capable assistant. Each reply is a single JSON object; there is no session and no event stream.
It works both with clients that start with `initialize` and with stateless clients that send the protocol version on every request.

## In the browser

Pages register the same five read-only operations as WebMCP tools (`document.modelContext`) in browsers that support it, and embed schema.org JSON-LD (WebSite, TouristAttraction, TrainStation, TouristDestination, Event).
