Salut à tous
En testant mon webservice de géoréférencement inverse (voir le json plus bas), j'arrive sur un cas intéressant, voire faux !
La recherche s'effectue dans un carré de 1x1km autour des coordonnées 1.067589/45.937252.
Sur la carte ci-dessous, vous trouverez :
- Une aiguille verte correspondant au point de recherche ; vous noterez la proximité avec la limite communale entre Veyrac (là où est situé le point de recherche) et Oradour-sur-Glane.
- Une aiguille orange correspondant à la seule réponse (exceptée la commune) du webservice beta 2
- Un rond orange figurant un lieu-dit habité sur la commune de Veyrac.
Question : pourquoi des POI de la commune de Veyrac plus proches du point de recherche ne sont-il pas retournés, "La boine" ou "le moulin du puy imbart" par exemple ?
Remarque : mon webservice "old school" retourne des résultats correctes (voir plus bas le json)
Voici la requête beta 2
Le json de mon webservice beta 2https://wxs.ign.fr/calcul/geoportail...dinates%22:%5B[[1.0739828331,45.9416985334],[1.0611944418,45.9416980292],[1.0611961922,45.9328051101],[1.0739825328,45.9328056143],[1.0739828331,45.9416985334]]]}&lon=1.067589&lat=1.067589&limit=20&citycode=87202
Le json "old school".{
"GeoReferencement": {
"Lieudit_commune_point": {
"NotFound": "0",
"Origine": "IGN",
"C_Pays": "FR",
"C_Departement": "87",
"C_Commune": "Veyrac",
"C_INSEE": "202",
"C_ID": "COMMUNE_0000000009751330",
"C_Nature": "administratif commune",
"C_LAT": 45.897463042,
"C_LONG": 1.106081112,
"C_TERRITOIRE": "FXX",
"C_distance": 43.32146608,
"L_Nature": "cours d'eau",
"L_Municipality": "la Glane",
"L_StreetNumber": null,
"L_Street": null,
"L_ID": "COURNOMM0000000010549464",
"L_LAT": 45.93437076,
"L_LONG": 1.087624548,
"L_ExtendedGeocodeMatchCode": "poi",
"L_distance": 592.44147978
},
"Lieudit_plus_proche": {
"NotFound": "0",
"Origine": "IGN",
"C_Pays": "FR",
"C_Departement": "87",
"C_Commune": "Oradour-sur-Glane",
"C_INSEE": "110",
"C_ID": "COMMUNE_0000000009751331",
"C_Nature": "administratif commune",
"C_LAT": 45.931237011,
"C_LONG": 1.032360847,
"C_TERRITOIRE": "FXX",
"C_distance": 38.40646376,
"L_Nature": "construction lin\u00e9aire,pont",
"L_Municipality": "Construction lin\u00e9aire",
"L_StreetNumber": null,
"L_Street": null,
"L_ID": "CONSLINE0000000010559698",
"L_LAT": 45.937381904,
"L_LONG": 1.064013789,
"L_ExtendedGeocodeMatchCode": "poi",
"L_distance": 273.05907235
},
"Adresse_plus_proche": {
"NotFound": "0",
"Origine": "IGN",
"C_Pays": "FR",
"C_Departement": "87",
"C_Commune": "Oradour-sur-Glane",
"C_INSEE": "110",
"C_LAT": 45.937482,
"C_LONG": 1.064432,
"C_TERRITOIRE": "FXX",
"L_Nature": "Adresse",
"L_Municipality": null,
"L_StreetNumber": "75",
"L_Street": "Route de Peyrilhac",
"L_LAT": 45.937482,
"L_LONG": 1.064432,
"L_ExtendedGeocodeMatchCode": "ban",
"L_distance": 246.15850775
},
"Lieudit_wnat_plus_proche": {
"NotFound": "0",
"Origine": "WNAT",
"unik_commune": "121961",
"unik_pays": "78",
"unik_territoire": "6",
"C_Pays": "FR",
"territoire": "FXX",
"C_Departement": "87",
"C_INSEE": "202",
"C_Commune": "VEYRAC",
"L_LONG": "1.074330",
"L_LAT": "45.933517",
"L_Municipality": "le moulin du puy imbart",
"L_Distance": "856.9326631755089",
"L_Point": "POINT(45.933517 1.07433)"
}
}
}
{
"GeoReferencement": {
"Lieudit_clic": {
"Origine": "IGN",
"C_Pays": "FR",
"C_Departement": "87",
"C_Commune": "Veyrac",
"C_INSEE": "202",
"C_Nature": "Commune",
"C_LAT": "45.894403",
"C_LONG": "1.105939",
"C_TERRITOIRE": "FXX",
"C_ExtendedGeocodeMatchCode": "City",
"C_distance": "5612.75",
"L_Nature": "Lieu-dit habit\u00e9",
"L_Municipality": "le moulin du puy imbart",
"L_StreetNumber": null,
"L_Street": null,
"L_LAT": "45.933517",
"L_LONG": "1.074330",
"L_ExtendedGeocodeMatchCode": "Toponym",
"L_distance": "667.57"
},
"Lieudit_plus_proche": {
"Origine": "IGN",
"C_Pays": "FR",
"C_Departement": "87",
"C_Commune": "Oradour-sur-Glane",
"C_INSEE": "110",
"C_Nature": "Commune",
"C_LAT": "45.931072",
"C_LONG": "1.032735",
"C_TERRITOIRE": "FXX",
"C_ExtendedGeocodeMatchCode": "City",
"C_distance": "2781.63",
"L_Nature": "Lieu-dit non habit\u00e9",
"L_Municipality": "le vilard",
"L_StreetNumber": null,
"L_Street": null,
"L_LAT": "45.940093",
"L_LONG": "1.063693",
"L_ExtendedGeocodeMatchCode": "Toponym",
"L_distance": "436.99"
},
"Adresse_plus_proche": {
"Origine": "IGN",
"C_Pays": "FR",
"C_Departement": "87",
"C_Commune": "Oradour-sur-Glane",
"C_INSEE": "110",
"C_LAT": "45.931072",
"C_LONG": "1.032735",
"C_TERRITOIRE": "FXX",
"L_Nature": "Adresse",
"L_Municipality": null,
"L_StreetNumber": "56",
"L_Street": "rte de peyrilhac",
"L_LAT": "45.937082",
"L_LONG": "1.062913",
"L_ExtendedGeocodeMatchCode": "Street number",
"L_distance": "363.09"
}
}
}
Partager