frenchlocation schema
This commit is contained in:
parent
70b1d5f5cb
commit
b787ebd945
@ -328,7 +328,6 @@ Odmdb.Schema = (objectPathname, validschema, lg = "en") => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!res.data.schema.apxid) {
|
if (!res.data.schema.apxid) {
|
||||||
return {
|
return {
|
||||||
status: 406,
|
status: 406,
|
||||||
|
@ -1,19 +1,24 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"$id": "/schema/frenchlocation",
|
"$id": "adminapi/schema/frenchlocation",
|
||||||
"title": "French adresse location system from https://api-adresse.data.gouv.fr/search/?q=8+bd+du+port+massy that respect GeoCodeJSON",
|
"title": "French adresse location system from https://api-adresse.data.gouv.fr/search/?q=8+bd+du+port+massy that respect GeoCodeJSON",
|
||||||
"description": "Manage properly postal adresse",
|
"description": "Manage properly postal adresse",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"locationid": {
|
||||||
|
"title": " A unique id of this zone",
|
||||||
|
"description": "Build with latitude(4 digits)_longitude(4 digits)_zoning define a unique id oflocation",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"title": "Type of result found, housenumber is a physical adresse, street position at street, locality: lieud it, municipality",
|
"title": "Type of result found, housenumber is a physical adresse, street position at street, locality: lieud it, municipality",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"housenumber":{
|
"housenumber": {
|
||||||
"title":"number with ince bis ter A B"
|
"title": "number with ince bis ter A B"
|
||||||
},
|
},
|
||||||
"street":{
|
"street": {
|
||||||
"title":"Name of street"
|
"title": "Name of street"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"title": "Number plaque and street name (no town)",
|
"title": "Number plaque and street name (no town)",
|
||||||
@ -35,10 +40,10 @@
|
|||||||
"title": "City name",
|
"title": "City name",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"zoning":{
|
"zoning": {
|
||||||
"title":"Number of kilometer around this position",
|
"title": "Number of kilometer around this position",
|
||||||
"type":"integer",
|
"type": "integer",
|
||||||
"minimum":0
|
"minimum": 0
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -59,5 +64,38 @@
|
|||||||
"title": "Contexte of this address Department number, Department Name, Region ",
|
"title": "Contexte of this address Department number, Department Name, Region ",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"locationid",
|
||||||
|
"position"
|
||||||
|
],
|
||||||
|
"additionalProperties": false,
|
||||||
|
"apxid": "locationid",
|
||||||
|
"apxuniquekey": [
|
||||||
|
"locationid"
|
||||||
|
],
|
||||||
|
"apxidx": [
|
||||||
|
{
|
||||||
|
"name": "lst_locationid",
|
||||||
|
"type": "array",
|
||||||
|
"keyval": "locationid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "frenchlocation",
|
||||||
|
"type": "view",
|
||||||
|
"keyval": "locationid",
|
||||||
|
"objkey": [
|
||||||
|
"postcode",
|
||||||
|
"city",
|
||||||
|
"label"
|
||||||
|
],
|
||||||
|
"filter": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"apxaccessrights": {
|
||||||
|
"pagans": {
|
||||||
|
"C": [],
|
||||||
|
"R": []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user