mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-10-09 17:02:46 +02:00
split utils, separate IRVE guess
This commit is contained in:
parent
b4c28335b2
commit
a732edc228
12 changed files with 460 additions and 363 deletions
|
@ -19,7 +19,7 @@ const MappingIRVE: MappingConfigType = {
|
|||
* select only certain points from the source
|
||||
*/
|
||||
filters: {
|
||||
// offset: 1, // limiter à une feature pour faire des tests
|
||||
// offset: 10, // limiter à une feature pour faire des tests
|
||||
enable_coordinates_filter: false,
|
||||
enable_properties_filter: true,
|
||||
// filter_points_older_than_year: 2024,
|
||||
|
@ -110,21 +110,25 @@ const MappingIRVE: MappingConfigType = {
|
|||
key_converted: 'socket:typee',
|
||||
ignore_if_falsy: true,
|
||||
convert_to_boolean_value: true,
|
||||
keep_only_max_in_enum: true,
|
||||
},
|
||||
prise_type_2: {
|
||||
key_converted: 'socket:type2',
|
||||
ignore_if_falsy: true,
|
||||
convert_to_boolean_value: true,
|
||||
keep_only_max_in_enum: true,
|
||||
},
|
||||
prise_type_combo_ccs: {
|
||||
key_converted: 'socket:type2_combo',
|
||||
ignore_if_falsy: true,
|
||||
convert_to_boolean_value: true,
|
||||
keep_only_max_in_enum: true,
|
||||
},
|
||||
prise_type_chademo: {
|
||||
key_converted: 'socket:chademo',
|
||||
ignore_if_falsy: true,
|
||||
convert_to_boolean_value: true,
|
||||
keep_only_max_in_enum: true,
|
||||
},
|
||||
// ******** champs plus complexes
|
||||
horaires: 'opening_hours', // déjà au bon format, enfin, en général. vérifier avec le validateur josm.
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
/**
|
||||
* commerces adhérant à Ask Angela
|
||||
* https://wiki.openstreetmap.org/wiki/Tag:healthcare:speciality%3Dfamily_planning
|
||||
* détails en Français https://wiki.openstreetmap.org/wiki/FR:Tag:healthcare:speciality%3Dfamily_planning
|
||||
*
|
||||
* Site officiel:
|
||||
* https://www.planning-familial.org/fr
|
||||
*/
|
||||
import MappingConfigType from "../mapping-config.type";
|
||||
|
||||
|
@ -14,7 +18,7 @@ const MappingPlanningFamlial: MappingConfigType = {
|
|||
// source faite à partir de data scraping du site français
|
||||
geojson_path: '',
|
||||
url: 'https://www.planning-familial.org/fr',
|
||||
overpass_query:`
|
||||
overpass_query: `
|
||||
[out:json][timeout:200];
|
||||
{{geocodeArea:"France"}}->.searchArea;
|
||||
nwr["healthcare:speciality"="family_planning"](area.searchArea);
|
||||
|
@ -29,20 +33,20 @@ const MappingPlanningFamlial: MappingConfigType = {
|
|||
tags_to_ignore_if_value_is: ['Non renseigne'],
|
||||
tags: {
|
||||
adresse: "addr:full",
|
||||
nom : {
|
||||
nom: {
|
||||
key_converted: 'name',
|
||||
convert_to_name: true,
|
||||
},
|
||||
telephone : {
|
||||
telephone: {
|
||||
key_converted: 'contact:phone',
|
||||
convert_to_phone: true,
|
||||
},
|
||||
"contact:website":"contact:website",
|
||||
"family_planning:handles:violences" : "family_planning:handles:violences",
|
||||
"family_planning:handles:sexualities" : "family_planning:handles:sexualities",
|
||||
"family_planning:handles:detection" : "family_planning:handles:detection",
|
||||
"family_planning:handles:abortion" : "family_planning:handles:abortion",
|
||||
"family_planning:handles:contraception" : "family_planning:handles:contraception",
|
||||
"contact:website": "contact:website",
|
||||
"family_planning:handles:violences": "family_planning:handles:violences",
|
||||
"family_planning:handles:sexualities": "family_planning:handles:sexualities",
|
||||
"family_planning:handles:detection": "family_planning:handles:detection",
|
||||
"family_planning:handles:abortion": "family_planning:handles:abortion",
|
||||
"family_planning:handles:contraception": "family_planning:handles:contraception",
|
||||
// ******* opendata de toulouse END **************
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue