Skip to content

Commit e349e18

Browse files
authored
better prompt examples, link to tutorial
1 parent 67ccd66 commit e349e18

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,18 @@ Convert an address or place name to coordinates and information about that locat
9494
- `limit` (optional): Max results (1-100, default 10)
9595
- `no_annotations` (optional): Exclude location annotations
9696

97-
**Example:**
97+
**Example prompts**
9898

9999
```
100-
Query: "1600 Pennsylvania Avenue, Washington, DC"
101-
Result: JSON with coordinates, formatted address, confidence score, address components, annotations
100+
Prompt: "What are the coordinates of Trafalgar Square, London?"
101+
Result: coordinates, timezone, local currency, etc
102+
103+
Prompt: "Where is Les Vans, France? Which Department is it in?"
104+
Result: coordinates, and correct answer that Les Vans is in the Ardèche department
105+
106+
Prompt: "In welchem Bundesland liegt Weimar?"
107+
Result: coordinates, and correct answer that Weimar is in Thüringen
108+
102109
```
103110

104111
### 2. geocode-reverse
@@ -112,11 +119,15 @@ Convert coordinates to an address and information about that location
112119
- `language` (optional): Language for results
113120
- `no_annotations` (optional): Exclude location annotations
114121

115-
**Example:**
122+
**Example prompts**
116123

117124
```
118-
Input: 38.8976, -77.0365
125+
Prompt: "what is the address at 38.8976, -77.0365?"
119126
Result: "1600 Pennsylvania Avenue NW, Washington, DC 20500, United States of America"
127+
128+
Prompt: "Which province are the coordinates 41.38700, 2.16995 in?"
129+
Result: "Coordinates are in Barcelona in the province of Catalonia"
130+
120131
```
121132

122133
### 3. get-opencage-info
@@ -159,6 +170,8 @@ The server includes comprehensive error handling:
159170

160171
- [OpenCage homepage](https://opencagedata.com/) - Get your geocoding API key
161172
- [OpenCage API Documentation](https://opencagedata.com/api) - Full OpenCage geocoding API reference
173+
- [OpenCage MCP tutorial](https://opencagedata.com/tutorials/geocode-inside-an-llm-via-mcp)
174+
162175
- [Model Context Protocol](https://modelcontextprotocol.io/) - Learn more about MCP
163176

164177
### Who is OpenCage GmbH?

0 commit comments

Comments
 (0)