Format Conversion
Convertir le format GeoJSON au format XML OpenStreetMap (OSM)
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/geojson-to-osm' \
-H 'Content-Type: application/json' \
-d '{"geojsonInput":"Entrez les données GeoJSON...","nodeStartId":-1,"wayStartId":-1,"prettyPrint":true}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/geojson-to-osm| Nom | Type | Requis | Description |
|---|---|---|---|
| geojsonInput | textarea | Oui | — |
| nodeStartId | number | Non | — |
| wayStartId | number | Non | — |
| prettyPrint | checkbox | Non | — |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-geojson-to-osm": {
"name": "geojson-to-osm",
"description": "Convertir le format GeoJSON au format XML OpenStreetMap (OSM)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=geojson-to-osm",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "geojson-to-osm",
"arguments": {
"geojsonInput": "Entrez les données GeoJSON...",
"nodeStartId": -1,
"wayStartId": -1,
"prettyPrint": true
}
}
}Des questions ou un problème ? Contactez [email protected]