Skip to content

Commit

Permalink
fix typo in osmose analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
nlehuby committed May 13, 2024
1 parent e071018 commit 34bc3eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osmose/ref_FR_STIF_lignes.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_errors(osm_lines, opendata_lines, line_coords):
error['fix'] = [{"key": "network", "value": opendata_network}]
error['label'] = "Réseau de transport (tag network) manquant pour cette ligne. Valeur probable : " + opendata_network
error['latitude'], error['longitude'] = an_osm_line['latitude'], an_osm_line['longitude']
error.append(error)
errors.append(error)
continue
elif an_osm_line['network'] != opendata_network :
if opendata_network in ["", "ValBus", "Parisis", "Sit'bus", "Conflans Achères", "Chavilbus"]:
Expand All @@ -130,7 +130,7 @@ def get_errors(osm_lines, opendata_lines, line_coords):
error['fix'] = [{"key": "operator", "value": opendata_operator}]
error['label'] = "Opérator de transport (tag operator) manquant pour cette ligne. Valeur probable : " + opendata_operator
error['latitude'], error['longitude'] = an_osm_line['latitude'], an_osm_line['longitude']
error.append(error)
errors.append(error)
continue
elif an_osm_line['operator'] != opendata_operator :
if opendata_operator in ["", "SNCF", "Magical Shuttle"]:
Expand All @@ -151,7 +151,7 @@ def get_errors(osm_lines, opendata_lines, line_coords):
error['fix'] = [{"key": "code", "value": opendata_code}]
error['label'] = "Numéro de ligne (tag ref) manquant pour cette ligne. Valeur probable : " + opendata_code
error['latitude'], error['longitude'] = an_osm_line['latitude'], an_osm_line['longitude']
error.append(error)
errors.append(error)
continue
elif an_osm_line['code'] != opendata_code :
if opendata_code in [""] or not opendata_code.isnumeric():
Expand Down

0 comments on commit 34bc3eb

Please sign in to comment.