Skip to main content
Glama

google-maps-link

Generate a Google Maps link using latitude and longitude coordinates to locate tram stations or stops on the Zaragoza tram system for easy navigation.

Instructions

Get a Google Maps link from coordinates to help people to find a station o stop

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latitudeYes
longitudeYes

Implementation Reference

  • Handler function that takes latitude and longitude, constructs a Google Maps URL, and returns it as text content.
    async ({ latitude, longitude }) => { const mapsUrl = `https://www.google.com/maps?q=${latitude},${longitude}`; return { content: [{ type: "text", text: mapsUrl }], }; }
  • Input schema using Zod for latitude and longitude parameters.
    { latitude: z.number(), longitude: z.number(), },
  • index.js:185-198 (registration)
    Registration of the 'google-maps-link' tool using server.tool, including name, description, schema, and handler.
    server.tool( "google-maps-link", "Get a Google Maps link from coordinates to help people to find a station o stop", { latitude: z.number(), longitude: z.number(), }, async ({ latitude, longitude }) => { const mapsUrl = `https://www.google.com/maps?q=${latitude},${longitude}`; return { content: [{ type: "text", text: mapsUrl }], }; } );

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/danilat/mcp-dndzgz'

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