MCP Location Services Prompts - mbasa/McpLocationService GitHub Wiki
The following prompts can be used to illustrate how the Geocoder
and Routing
services can be called from within the Claude AI.
Geocode Two Addresses then get the Driving Distance
Prompt:
get the Japanese addresses of Nihonbashi Takashimaya and Shinjuku Takashimaya then geocode the addresses. Display the full geocoded information and get the driving distance between the two coordinates.
Reverse Geocode a Lat/Lng Coordinate
Prompt:
reverse geocode this latitude/longitude coordinates 35.684647517, 139.703351633 and display the full output.
Show the Shortest Path between Two Addresses
Prompt:
get the address in Japanese of 杉並区立中央図書館, then geocode that address as well as this address 杉並区清水1−3−2. Use the coordinates of those geocoded addresses and get the shortest path between those two points. Finally, create a Leaflet map with OSM background and display the shortest path and the two points.
Show Drive Time Polygons with different Radiuses
Prompt:
get the Japanese address of the 杉並公会堂 and geocode the address. Use the geocoded coordinates to create a drive time polygon with 2000, 3000, 4000 meters radius. Then, create a Leaflet map with OSM as background data and display the geocoded point as well as the different drive time polygons.
Creating a Traveling Sales Person (TSP) Tour from a list of Addresses
Prompt:
geocode the following addresses: 杉並区清水1−3−14, 東京都杉並区荻窪5-20-7 吉田ビル 1F,東京都杉並区荻窪5-24-7 富士ビル 2F, 東京都杉並区高井戸東4-14-7, 東京都杉並区天沼3-10-16, 東京都杉並区上荻2-7-11. Get the geocoded coordinates and create a tour where the first address is the starting point and the other address have to be visited only once. The tour should end with the first address. Then, create a Leaflet map with OSM as background and display the different addresses as well the tour lines.