Commit graph

170 commits

Author SHA1 Message Date
Alexey Zakharenkov
f78e68286e osmupdate tool returns 0 code on some kind of failures, so analyze its stderr to avoid proceeding with corrupted planet 2019-07-26 10:54:58 +03:00
Alexey Zakharenkov
566675d15b Rewrite command sequence 'command1 && command2' as 'command1; command2' for the command2 not to try to execute after command1 fail 2019-07-24 14:00:56 +03:00
Alexey Zakharenkov
4731c0a21c More correct quote placement 2019-07-09 00:38:51 +03:00
Alexey Zakharenkov
871e95dd4d '[ -n "" ] && command' chain returns non-zero code if -n test fails, and the whole script exits non-zero. This may confuse encompassing script 2019-07-05 18:05:53 +03:00
Alexey Zakharenkov
936c4f66d6 If an error occurs during osmupdate (may provide not complete *.new.o5m) then the script should stop otherwise we get unwanted behaviour 2019-07-05 17:57:10 +03:00
Sergey Yershov
57c459175a
Merge pull request #79 from alexey-zakharenkov/continue-on-bad-bbox
Recover after 'Item is not in dataset' exception to continue validating other cities
2019-07-05 13:24:27 +03:00
alexey-zakharenkov
0373b72901
Merge pull request #78 from DerDakon/entrance-list
list which subway entrances are not in stop areas
2019-07-04 11:55:10 +03:00
Alexey Zakharenkov
ccea2d6bf1 Refactor try-catch logic 2019-07-03 10:55:45 +03:00
Alexey Zakharenkov
a1ecc7429d City.errors array may be needed earlier than you thought 2019-07-02 18:18:23 +03:00
Alexey Zakharenkov
45a214892c No need to validate() a city after critical error 2019-07-02 16:33:35 +03:00
Alexey Zakharenkov
5e347b09a1 Recover after 'Item is not in dataset' exception to continue validating other cities 2019-07-02 11:46:27 +03:00
Rostislav
1975f10ee3
Merge pull request #77 from alexey-zakharenkov/render
Subway render
2019-06-24 18:38:38 +05:00
Rolf Eike Beer
9975ecfbad list which subway entrances are not in stop areas 2019-06-22 11:13:27 +02:00
Alexey Zakharenkov
c7442894fb Remove comment 2019-06-21 15:59:24 +03:00
Alexey Zakharenkov
455ea37ca9 Add removing hint marker when the user starts using city list 2019-06-21 15:55:45 +03:00
Alexey Zakharenkov
50e4e13d12 Improve render's code; remove 3d party library for ajax 2019-06-21 15:25:15 +03:00
Alexey Zakharenkov
9e23028638 Move javascript from html to js file 2019-06-19 12:00:56 +03:00
Alexey Zakharenkov
47f978cd42 Link to the render page from the validation summary page 2019-06-19 10:51:55 +03:00
Alexey Zakharenkov
3b3548d7d6 Use spaces in indentation instead of tabs 2019-06-19 10:29:35 +03:00
Alexey Zakharenkov
3b6655f259 Initial version of subway render with leaflet js library 2019-06-18 19:22:26 +03:00
Sergey Yershov
7f81628a9b
Merge pull request #71 from alexey-zakharenkov/fix-overpass-request
Fix overpass request
2019-06-13 14:53:47 +03:00
Alexey Zakharenkov
56f9a9586c Increase readability 2019-06-13 14:34:41 +03:00
Alexey Zakharenkov
e1cb765bd0 Return readability to validation json output 2019-06-12 19:40:55 +03:00
Alexey Zakharenkov
c615a6b880 Fix regular expression to not recognize substring n23 in strings like 'Train23B' as reference to OSM node 2019-06-10 16:44:50 +03:00
Alexey Zakharenkov
a8b953ae58 Fix encoding setting 2019-06-10 16:20:07 +03:00
Alexey Zakharenkov
cee31a9fc5 Amend readme 2019-06-06 16:14:33 +03:00
Alexey Zakharenkov
df59ac7d73 Fix html generator so that it doesn't consider 'way 2' substring as link to osm object w2 in strings like 'Subway 2: Wakefield-241st Street => Flatbush Avenue-Brooklyn College 2019-06-06 15:31:01 +03:00
Alexey Zakharenkov
2cd0cf53e4 Rewrite overpass-api request to work (checked to work on rapid modes) 2019-06-06 15:27:20 +03:00
Alexey Zakharenkov
106095d1c5 Merge branch 'master' of https://github.com/mapsme/subways 2019-05-18 22:30:58 +03:00
Alexey Zakharenkov
c8ca78c4a5 Merge branch 'self-healing-subway' 2019-05-18 22:24:09 +03:00
Alan
30c32a74b5
Merge pull request #67 from alexey-zakharenkov/self-healing-subway
Automatic recovery of broken station order in a route
2019-05-17 13:09:56 +03:00
Alexey Zakharenkov
2de5a048d6 Fix spaces; add TODO comment 2019-05-16 22:52:14 +03:00
Sergey Yershov
c24785b503
Merge pull request #70 from claudiush/patch-1
Update v2h_templates.py
2019-05-15 10:18:59 +03:00
Claudius
21641babe7
Update v2h_templates.py
Added some CSS styling to support highlighting a row on hover. Also applying a max width to the table to prevent the country table to grow too wide
2019-05-14 22:22:24 +02:00
Alexey Zakharenkov
2e432b9beb Fix style issues 2019-05-08 13:55:57 +03:00
alexey-zakharenkov
8d179f6b41
Remove traces of working process 2019-04-25 16:58:42 +03:00
Alexey Zakharenkov
d6d6852573 Check for station displacement during recovery station order 2019-04-25 15:24:17 +03:00
Victor Popov
ed62fc71d3
Merge pull request #66 from alexey-zakharenkov/mapsme-public-url-for-validation
Update validation URL in README
2019-04-25 13:25:56 +03:00
Alexey Zakharenkov
a21042ecbd Add RECOVERY_PATH configuration parameter; fix a bug in using --json argument and rename --json to --geojson 2019-04-25 10:22:09 +03:00
Alexey Zakharenkov
e38db5f5be Move io functions into subway_io.py module; a bug fixed 2019-04-25 09:42:48 +03:00
Alexey Zakharenkov
39930ee3ef Update README file 2019-04-23 14:46:01 +03:00
Alexey Zakharenkov
0f83a69f8e Introduce recovery data file; recover 'unsorted stops in route' error 2019-04-23 13:52:35 +03:00
Victor Popov
40a23d4e65
Merge pull request #65 from alexey-zakharenkov/good-cities-cache
Cache of good cities
2019-03-22 18:28:12 +03:00
Alexey Zakharenkov
7e9b6fcbc9 Decorator renamed; small fixes 2019-03-22 15:55:46 +03:00
Alexey Zakharenkov
fc1ed869a9 Make in-class decorator autonomous function 2019-03-22 13:28:27 +03:00
Alexey Zakharenkov
02fe92a764 Magic numbers convered to constants; clarifying coordinate comparison 2019-03-21 15:33:16 +03:00
Alexey Zakharenkov
1c8a80a252 Make decorator for conditionally skipped methods; bug fixes 2019-03-18 13:46:10 +03:00
Alexey Zakharenkov
21d0362290 Moved all actions with city cache into a class. This class not only encapsulates the cache logic but also skips cache maintaining in case when --cache command line option is omitted. 2019-03-14 15:27:37 +03:00
Alexey Zakharenkov
20baec0483 Extract common parts of two checkers into a separate file; use logging instead print() in functions 2019-03-12 12:20:28 +03:00
Alexey Zakharenkov
284b429ef0 Compact city cach json 2019-02-12 15:32:53 +03:00