Skip to main content
Glama

get_traveler_location

Retrieve the precise address of a traveler's current position in a virtual Google Maps environment, enabling accurate location tracking and journey updates.

Instructions

Get the address of the current traveler's location

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler logic for retrieving current view/location information, called by the tool with parameters (dayjs(), false, true, env.isPractice). Computes run status, elapsed time, and generates view details including facilities and position.
    function getCurrentView(now: dayjs.Dayjs, includePhoto: boolean, includeNearbyFacilities: boolean, practice = false) { return Effect.gen(function* () { const {runStatus, justArrive, elapseRatio} = yield* getRunStatusAndUpdateEnd(now,practice); // ただし前回旅が存在し、それが終了していても、そのendTimeから1時間以内ならその場所にいるものとして表示する return yield* makeView(runStatus, elapseRatio, justArrive && dayjs().isBefore(dayjs.unix(runStatus.tilEndEpoch).add(1, "hour")), includePhoto, includeNearbyFacilities, practice) }) }
  • Dispatch handler in toolSwitch function that routes 'get_traveler_location' tool calls to getCurrentLocationInfo(false, true, env).
    case "get_traveler_location": return getCurrentLocationInfo(false, true,env)
  • Helper wrapper function getCurrentLocationInfo that invokes RunnerService.getCurrentView with current time, specified photo and facilities flags, and practice mode.
    const getCurrentLocationInfo = (includePhoto: boolean, includeNearbyFacilities: boolean,env:Mode) => { return RunnerService.getCurrentView(dayjs(), includePhoto, includeNearbyFacilities, env.isPractice) }
  • Input schema definition for the 'get_traveler_location' tool in GET_VIEW_COMMAND array, used in makeToolsDef for tool listing. No input parameters required.
    { name: "get_traveler_location", // 関数名の合成現象があった? とりあえずaliasを置く title: "Get the traveler's current location", description: "Get the address of the current traveler's location", inputSchema: { type: "object", properties: {} } },
  • Registration of 'get_traveler_location' tool within GET_VIEW_COMMAND array in makeToolsDef function, conditionally included based on environment (travelerExist). Used for listing available tools.
    { name: env.personMode === 'second' ? "get_current_view_info" : "get_traveler_view_info", title: "Get the current location's view", description: env.personMode === 'second' ? "Get the address of the current location and information on nearby facilities,view snapshot" : "Get the address of the current traveler's location and information on nearby facilities,view snapshot", inputSchema: { type: "object", properties: { includePhoto: { type: "boolean", description: "Get scenery photos of current location" }, includeNearbyFacilities: { type: "boolean", description: "Get information on nearby facilities" }, } } }, { name: "get_traveler_location", // 関数名の合成現象があった? とりあえずaliasを置く title: "Get the traveler's current location", description: "Get the address of the current traveler's location", inputSchema: { type: "object", properties: {} } }, ]

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mfukushim/map-traveler-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server