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) {
|
||||
return {
|
||||
status: 406,
|
||||
|
@ -1,19 +1,24 @@
|
||||
{
|
||||
"$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",
|
||||
"description": "Manage properly postal adresse",
|
||||
"type": "object",
|
||||
"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": {
|
||||
"title": "Type of result found, housenumber is a physical adresse, street position at street, locality: lieud it, municipality",
|
||||
"type": "string"
|
||||
},
|
||||
"housenumber":{
|
||||
"title":"number with ince bis ter A B"
|
||||
"housenumber": {
|
||||
"title": "number with ince bis ter A B"
|
||||
},
|
||||
"street":{
|
||||
"title":"Name of street"
|
||||
"street": {
|
||||
"title": "Name of street"
|
||||
},
|
||||
"name": {
|
||||
"title": "Number plaque and street name (no town)",
|
||||
@ -35,10 +40,10 @@
|
||||
"title": "City name",
|
||||
"type": "string"
|
||||
},
|
||||
"zoning":{
|
||||
"title":"Number of kilometer around this position",
|
||||
"type":"integer",
|
||||
"minimum":0
|
||||
"zoning": {
|
||||
"title": "Number of kilometer around this position",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"position": {
|
||||
"type": "object",
|
||||
@ -59,5 +64,38 @@
|
||||
"title": "Contexte of this address Department number, Department Name, Region ",
|
||||
"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