Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.scannerwork/
.scannerwork/
node_modules
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2.3.0
ADDED:
- new fields in capabilities for INSPIRE compliance

## 2.2.11
UPDATED:
- Updated Dockefile: donwgrade node version to 16 for compatibility with OSRM 5.26.0
Expand Down
3 changes: 1 addition & 2 deletions docker/config/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"name": "Road2",
"title": "Service de calcul d'itinéraire",
"description": "Ce service permet de calculer des itinéraires sur les données du Géoportail.",
"url": "https://localhost/",
"provider": {
"name": "IGN",
"site": "www.ign.fr",
Expand Down Expand Up @@ -50,7 +49,7 @@
"cors": {
"configuration": "/home/docker/config/cors.json"
}
},
},
"projections": {
"directory": "/home/docker/config/projections/"
},
Expand Down
22 changes: 20 additions & 2 deletions documentation/apis/administration/1.0.0/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1353,9 +1353,27 @@
"type": "string",
"example": "Ce service permet de calculer des itinéraires sur les données du Géoportail."
},
"url": {
"language": {
"type": "string",
"example": "https://localhost/"
"example": "Français"
},
"contact": {
"type": "object",
"properties": {
"email": {
"type": "string",
"example": "contact.geoservices@ign.fr"
}
}
},
"keywords": {
"type": "object",
"properties": {
"keyword": {
"type": "string",
"example": "infoMapAccessService"
}
}
},
"provider": {
"type": "object",
Expand Down
38 changes: 27 additions & 11 deletions documentation/configuration/services/service_model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,26 @@
"description":
type: string
required: true
# Url du service qui va apparaître dans le getcap
"url":
type: string
required: true
"language":
type: string
required: false
# Informations de contact
"contact":
type: object
required: false
properties:
# Adresse mail du fournisseur
"email":
type: string
required: true*
# Mots clefs associés au service
"keywords":
type: object
required: false
properties:
"keyword":
type: string
required: true
# Information sur le fournisseur du service
"provider":
type: object
Expand Down Expand Up @@ -90,7 +106,7 @@
items:
type: object
properties:
# Id du serveur
# Id du serveur
"id":
type: string
required: true
Expand All @@ -104,7 +120,7 @@
required: true
# Utilisation du HTTPS
"https":
type: string
type: string
enum: ["true", "false"]
required: true
# Options pour le HTTPS (nécessaire si https="true")
Expand All @@ -121,13 +137,13 @@
type: string
required: true
# Configuration des cors
"cors":
type: object
"cors":
type: object
required: false
properties:
# Fichier de configuration des cors
"configuration":
type: string
# Fichier de configuration des cors
"configuration":
type: string
required: true
# Configuration des projections disponibles
"projections":
Expand Down
24 changes: 21 additions & 3 deletions documentation_en/apis/administration/1.0.0/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1353,9 +1353,27 @@
"type": "string",
"example": "Ce service permet de calculer des itinéraires sur les données du Géoportail."
},
"url": {
"language": {
"type": "string",
"example": "https://localhost/"
"example": "Français"
},
"contact": {
"type": "object",
"properties": {
"email": {
"type": "string",
"example": "contact.geoservices@ign.fr"
}
}
},
"keywords": {
"type": "object",
"properties": {
"keyword": {
"type": "string",
"example": "infoMapAccessService"
}
}
},
"provider": {
"type": "object",
Expand Down Expand Up @@ -1859,4 +1877,4 @@
}
}
}
}
}
24 changes: 19 additions & 5 deletions src/js/apis/simple/1.0.0/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,25 @@ module.exports = {
getCapabilities.info.title = globalConfiguration.application.title;
// info.description
getCapabilities.info.description = globalConfiguration.application.description;
// info.url
getCapabilities.info.url = globalConfiguration.application.url;
// info.language
getCapabilities.info.language = "";
if (globalConfiguration.application.language) {
getCapabilities.info.language = globalConfiguration.application.language;
}
// info.keywords
getCapabilities.info.keywords = {};
if (globalConfiguration.application.keywords) {
getCapabilities.info.keywords.keyword = globalConfiguration.application.keywords.keyword;
}
// info.contact
getCapabilities.info.contact = {};
if (globalConfiguration.application.contact) {
getCapabilities.info.contact.email = globalConfiguration.application.contact.email;
}

// provider
// provider
getCapabilities.provider = {};

if (globalConfiguration.application.provider) {

// provider.name
Expand All @@ -61,6 +74,7 @@ module.exports = {
getCapabilities.provider.mail = "";
}


// api
getCapabilities.api = {};
// api.name
Expand Down Expand Up @@ -575,7 +589,7 @@ module.exports = {
crsParameterDescription.example = "EPSG:4326";
nearestDescription.parameters.push(crsParameterDescription);



// -- end nearest.parameters

Expand Down
Loading