Commit graph

266 commits

Author SHA1 Message Date
Alexander Borsuk
fd533c449d
Merge pull request #6 from organicmaps/upstream
Upstream sync
2023-05-30 12:28:57 +02:00
Alexey Zakharenkov
97dc8901b4 Upgrade shapely dependency to 2.0 2023-05-29 15:43:45 +03:00
Alexey Zakharenkov
0df4213267 Defer stop distances calculation until city is validated 2023-05-29 11:53:25 +03:00
Alexander Borsuk
cf8f3cdf91
Merge pull request #5 from organicmaps/upstream
Upstream fixes
2023-05-27 15:39:16 +02:00
Alexey Zakharenkov
a08947bc4d Add tests for validation messages on wrong stops order 2023-04-04 17:45:48 +03:00
Alexey Zakharenkov
c19bd6dd2f Fix validation message: show human readable text instead of python object representation 2023-04-04 17:45:48 +03:00
Alexey Zakharenkov
483429129c Check CSV numeric values on reading network information 2023-03-27 16:57:32 +03:00
Alexander Borsuk
538dbf2734
Merge pull request #4 from organicmaps/upstream
Upstream fixes from Alexey
2023-03-14 22:31:33 +01:00
Alexey Zakharenkov
c7ae6ece61 Clean requirements 2023-02-17 14:05:19 +03:00
Alexey Zakharenkov
86b7e048e2 Different improvements to validation_to_html.py 2023-01-12 15:28:29 +03:00
Alexey Zakharenkov
52599fe566 Add --cities-info-url CLI parameter to the main script and utilities 2023-01-12 15:28:29 +03:00
Alexey Zakharenkov
92563e6d80 Remove unreachable code 2023-01-12 15:28:29 +03:00
Alexey Zakharenkov
6706137670 Create directories for validator output if not exist 2023-01-12 15:28:29 +03:00
Alexey Zakharenkov
01eb589d13 Improve relation center calculation 2022-12-29 16:26:11 +03:00
Alexey Zakharenkov
95d0d0d0fd Run the code through flake8 and black 2022-12-20 17:52:13 +03:00
Alexey Zakharenkov
86e65d2115 Create universal serializable transit data format, use it in GTFS processor 2022-12-16 11:14:29 +03:00
Alexey Zakharenkov
9271a0f508 Factory pattern for route instantiation in City class 2022-12-02 14:11:53 +03:00
Alexey Zakharenkov
921ca513cf Fix calculating stop positions for route with rails reversed relative to stops order 2022-11-07 21:25:04 +03:00
Alexey Zakharenkov
a6b76068f8 Defer CSV-complying data transformation to write-to-CSV phase 2022-10-20 23:18:20 +03:00
Alexey Zakharenkov
314941ea28 Add to GTFS only transfers in which both stops are part of routes 2022-10-20 23:18:20 +03:00
Alexey Zakharenkov
84253f9982 Refactoring: make main() function and two more functions 2022-10-14 14:27:58 +03:00
Alexey Zakharenkov
637c1b303b More accurate OSM element centers calculation 2022-10-14 14:27:58 +03:00
Alexey Zakharenkov
8abc48eb86 Remove duplicate variable assignment 2022-10-14 14:27:58 +03:00
Alexey Zakharenkov
e53683655d Refactoring: move a nested function to the module level; add tests for it 2022-10-13 13:59:51 +03:00
Alexey Zakharenkov
a9c32e3c12 Add two new checks 2022-10-13 13:59:51 +03:00
Alexey Zakharenkov
f43e7e7b39 Create method to allow overriding 2022-10-13 13:59:51 +03:00
Alexey Zakharenkov
0e60535121 Take into account that City.validate() method may never be called for a city - in case a CriticalValidationError occured 2022-09-29 20:55:46 +03:00
Alexey Zakharenkov
58f59a8478 Validation error 'Stop ... is nowhere near the tracks' was mistakenly supressed and now returned 2022-09-29 20:55:46 +03:00
Alexey Zakharenkov
00e5130836 Fix attribute assignment 2022-09-29 20:55:46 +03:00
Alexey Zakharenkov
05b9478dec Fixes to GTFS generation 2022-08-18 15:48:26 +03:00
Alexey Zakharenkov
133f5608d4 Make City.is_good a property 2022-07-13 09:48:53 +03:00
Alexey Zakharenkov
0c8821b850 Use csv.DictReader instead of csv.reader to load city data 2022-07-13 09:48:53 +03:00
Alexey Zakharenkov
a684370eb6 Add tests on adjusting rails geometry; configure GitHub Actions for the tests 2022-07-13 09:48:53 +03:00
Alexey Zakharenkov
0a304a96c3 Methods to adjust rails at route start/end 2022-07-13 09:48:53 +03:00
Alexey Zakharenkov
c5f9161321 Refactor Route.__init_() to separate stops processing from rails processing 2022-07-13 09:48:53 +03:00
Alexey Zakharenkov
277f5b0e91 GTFS output 2022-06-23 13:56:00 +03:00
Alexey Zakharenkov
a035e8f40d Revert PR #18 as incorrect: there may be lines with the same ref in a network 2022-05-27 15:20:26 +03:00
Jiaxun Yang
a676caf985 Suggest the parent route of platform with invalid role
The wraning message now looks like: 
Platform "" (w1055889735) with invalid role '' in route (relation 2336456, "")
It will be easier for us to sort those issues.
2022-05-27 14:49:25 +03:00
Alexander Borsuk
738e13d73a Create directories if necessary
Signed-off-by: Alexander Borsuk <me@alex.bio>
2022-04-23 00:32:38 +02:00
Alexander Borsuk
263329e06d Updated README
Signed-off-by: Alexander Borsuk <me@alex.bio>
2022-04-23 00:28:48 +02:00
Alexander Borsuk
7537e2aace
Merge pull request #3 from organicmaps/upstream
Upstream fixes
2022-04-23 00:26:36 +02:00
Alexey Zakharenkov
7df15a390d Check route ref uniqueness within a city 2022-04-21 19:19:33 +03:00
Alexey Zakharenkov
d28b2f1503 Make "Route has no stops" a warning, not an error 2022-04-21 14:24:42 +03:00
Alexey Zakharenkov
bf27197b12 Correct links to the repository and active validator instance 2021-11-20 21:06:42 +01:00
Alexey Zakharenkov
9246f72998 Correct links to the repository and active validator instance 2021-11-19 12:56:33 +03:00
Alexander Borsuk
92430e27fc
Merge pull request #1 from alexey-zakharenkov/master
Changes from the upstream repo
2021-11-12 21:36:31 +01:00
Alexey Zakharenkov
de63a46e5c
Merge pull request #14 from alexey-zakharenkov/add-error-severity-level
Make three levels of severity for validation messages
2021-11-09 18:35:55 +03:00
Alexey Zakharenkov
ef5bbab672 Return "error_if"-logic for tram lines count 2021-11-08 12:22:57 +03:00
Alexey Zakharenkov
76d9d0bbb9 Fix html layout so that tooltips stay inside window viewport 2021-11-03 23:30:32 +03:00
Alexey Zakharenkov
9d4d6c6583 Merge branch 'master' into add-error-severity-level 2021-11-03 13:46:48 +03:00