Skip to content

Commit

Permalink
Add more OTP endpoints and update coverage areas
Browse files Browse the repository at this point in the history
Coverage areas are no longer based on the (often bogus) bounding polygons
reported by the OTP instances themselves, but are now the convex hull of
all stops after applying basic outlier filtering on those.
  • Loading branch information
vkrause committed Oct 8, 2021
1 parent 52c377f commit dc1cdb7
Show file tree
Hide file tree
Showing 13 changed files with 152 additions and 26 deletions.
2 changes: 1 addition & 1 deletion data/de/bbnavi-angermuende-otp.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"coverage": {
"realtimeCoverage": {
"area": {
"coordinates": [ [ [ 14.317186592936189, 53.743417 ], [ 14.549204, 53.418155 ], [ 14.815123, 52.35022 ], [ 14.980024980425659, 51.146814 ], [ 11.620201, 51.146814 ], [ 11.620201, 53.743417 ], [ 14.317186592936189, 53.743417 ] ] ],
"coordinates": [ [ [ 11.620201, 53.226561 ], [ 11.645078, 53.572514 ], [ 12.761041, 53.743417 ], [ 14.052233, 53.736202 ], [ 14.549204, 53.418155 ], [ 14.815123, 52.35022 ], [ 14.978737, 51.146814 ], [ 12.41293, 51.150547 ], [ 11.987348, 51.477099 ], [ 11.629965, 52.109119 ], [ 11.625445, 52.122478 ], [ 11.620201, 53.226561 ] ] ],
"type": "Polygon"
},
"region": [
Expand Down
6 changes: 1 addition & 5 deletions data/de/stadtnavi-otp.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
"coverage": {
"realtimeCoverage": {
"area": {
"coordinates": [
[
[ 7.503590600000001, 49.8348605 ], [ 11.082291, 49.8348605 ], [ 11.082291, 47.525812300000005 ], [ 7.503590600000001, 47.525812300000005 ], [ 7.503590600000001, 49.8348605 ]
]
],
"coordinates": [ [ [ 7.226147, 49.28605 ], [ 7.731818, 50.104153 ], [ 7.731871, 50.104176 ], [ 8.661349, 50.106907 ], [ 9.936113, 49.802395 ], [ 11.081806, 49.44637 ], [ 11.082291, 49.4458 ], [ 11.100635, 48.71671 ], [ 11.098065, 48.223408 ], [ 11.037977, 48.10581 ], [ 10.278568, 47.41138 ], [ 8.71859, 47.35055 ], [ 8.548557, 47.366737 ], [ 7.6386757, 47.5359231 ], [ 7.589587, 47.546635 ], [ 7.343826, 47.742508 ], [ 7.226147, 49.28605 ] ] ],
"type": "Polygon"
},
"region": [ "DE-BW" ]
Expand Down
6 changes: 1 addition & 5 deletions data/de/ulm-otp.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
"coverage": {
"realtimeCoverage": {
"area": {
"coordinates": [
[
[ 8.6407794, 49.0365089 ], [ 11.3182223, 49.0365089 ], [ 11.3182223, 48.2892591 ], [ 8.6407794, 48.2892591 ], [ 8.6407794, 49.0365089 ]
]
],
"coordinates": [ [ [ 7.503897, 47.810986 ], [ 7.566294, 49.416286 ], [ 7.86643, 49.84272 ], [ 8.358303, 49.857391 ], [ 8.687607, 49.860924 ], [ 9.154138, 49.840553 ], [ 9.936068, 49.802307 ], [ 11.082632, 49.444752 ], [ 11.763034, 48.800194 ], [ 11.763088, 48.800102 ], [ 11.557769, 48.139908 ], [ 10.278568, 47.411381 ], [ 9.276794, 47.390171 ], [ 8.538792, 47.378372 ], [ 7.588366, 47.546696 ], [ 7.524891, 47.68494 ], [ 7.503897, 47.810986 ] ] ],
"type": "Polygon"
},
"region": [ "DE-BW" ]
Expand Down
21 changes: 21 additions & 0 deletions data/ee/peatus-otp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Peatus",
"coverage": {
"anyCoverage": {
"area": {
"coordinates": [ [ [ 21.01000005, 56.47999934 ], [ 22.26000113, 60.4499993 ], [ 23.76000159, 61.48999981 ], [ 28.77000133, 60.69999991 ], [ 30.33000028, 59.94999924 ], [ 30.362018, 59.92978 ], [ 30.54000016, 56.33999986 ], [ 29.95999976, 55.84999959 ], [ 24.36999903, 55.72999942 ], [ 21.13999916, 55.68999934 ], [ 21.06999937, 55.91000052 ], [ 21.01000005, 56.47999934 ] ] ],
"type": "Polygon"
},
"region": [ "EE" ]
}
},
"options": {
"apiVersion": "otp1",
"endpoint": "https://api.peatus.ee/routing/v1/routers/estonia/"
},
"supportedLanguages": [ "ee" ],
"timezone": "Europe/Tallinn",
"type": {
"otpGraphQl": true
}
}
6 changes: 1 addition & 5 deletions data/fi/digitransit-otp.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"coverage": {
"realtimeCoverage": {
"area": {
"coordinates": [
[
[ 19.3167101, 70.1383835 ], [ 37.653402, 70.1383835 ], [ 37.653402, 55.776771 ], [ 19.3167101, 55.776771 ], [ 19.3167101, 70.1383835 ]
]
],
"coordinates": [ [ [ 19.5364379883, 60.225493147 ], [ 23.37321, 68.085655 ], [ 27.105514, 68.085211 ], [ 28.374703, 67.475279 ], [ 29.001726, 67.026247 ], [ 29.010651, 67.019786 ], [ 29.011312, 67.018898 ], [ 29.402473, 66.269061 ], [ 30.936753, 62.666188 ], [ 30.935893, 62.561501 ], [ 30.935428, 62.549161 ], [ 30.441691, 59.931594 ], [ 21.3681720361, 59.7865148075 ], [ 19.9279975891, 60.0924550185 ], [ 19.5364379883, 60.225493147 ] ] ],
"type": "Polygon"
},
"region": [ "FI" ]
Expand Down
6 changes: 1 addition & 5 deletions data/fi/helsinki-otp.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
"coverage": {
"realtimeCoverage": {
"area": {
"coordinates": [
[
[ 19.5364379883, 66.5802673946 ], [ 29.5712215851, 66.5802673946 ], [ 29.5712215851, 59.7865148075 ], [ 19.5364379883, 59.7865148075 ], [ 19.5364379883, 66.5802673946 ]
]
],
"coordinates": [ [ [ 22.914567, 60.041371 ], [ 22.9434213602, 60.3180919992 ], [ 25.657575, 60.976337 ], [ 25.657594, 60.976337 ], [ 26.70497, 60.86537 ], [ 26.705, 60.86526 ], [ 26.7764662136, 60.3446014382 ], [ 24.430405, 59.987483 ], [ 23.4702944455, 59.8931539418 ], [ 22.923144, 60.038432 ], [ 22.914567, 60.041371 ] ] ],
"type": "Polygon"
},
"region": [ "FI-17" ]
Expand Down
6 changes: 1 addition & 5 deletions data/fi/waltti-otp.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"coverage": {
"realtimeCoverage": {
"area": {
"coordinates": [
[
[ 19.3167101, 70.1383835 ], [ 31.5841445, 70.1383835 ], [ 31.5841445, 59.723203000000005 ], [ 19.3167101, 59.723203000000005 ], [ 19.3167101, 70.1383835 ]
]
],
"coordinates": [ [ [ 21.329408, 60.22276 ], [ 21.519456, 63.001411 ], [ 21.519621, 63.002423 ], [ 21.545052, 63.147953 ], [ 25.185918, 67.005823 ], [ 26.296994, 66.967837 ], [ 27.249355, 66.272155 ], [ 30.933894, 62.671867 ], [ 30.936753, 62.666188 ], [ 30.935899, 62.561499 ], [ 30.935432, 62.549161 ], [ 28.669874, 60.984591 ], [ 27.840752, 60.601424 ], [ 26.903126, 60.429636 ], [ 24.941249, 60.172097 ], [ 22.411884, 59.921325 ], [ 21.598098, 60.112374 ], [ 21.582804, 60.116928 ], [ 21.58163, 60.117375 ], [ 21.362636, 60.200805 ], [ 21.362519, 60.200854 ], [ 21.346183, 60.209948 ], [ 21.329408, 60.22276 ] ] ],
"type": "Polygon"
},
"region": [ "FI" ]
Expand Down
20 changes: 20 additions & 0 deletions data/it/piemonte-otp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Muoversi in Piemonte",
"coverage": {
"anyCoverage": {
"area": {
"coordinates": [ [ [ 6.657883, 45.192791 ], [ 6.6584399, 45.193577 ], [ 7.32343, 45.73486 ], [ 7.32358, 45.73497 ], [ 8.26473, 46.06416 ], [ 8.737411, 45.996876 ], [ 9.20245, 45.765152 ], [ 9.207863, 45.476323 ], [ 9.20967544764, 45.1110632288 ], [ 9.20905531201, 44.9739638801 ], [ 9.20890537229, 44.9633386187 ], [ 9.20406738968, 44.7772915919 ], [ 9.18694377385, 44.7114138668 ], [ 9.032512, 44.383804 ], [ 8.0207, 43.92891 ], [ 7.512849, 43.938467 ], [ 6.93822, 44.39601 ], [ 6.66512311, 45.04967936 ], [ 6.657883, 45.192791 ] ] ],
"type": "Polygon"
},
"region": [ "IT-21" ]
}
},
"options": {
"endpoint": "https://map.muoversinpiemonte.it/otp/routers/mip/"
},
"supportedLanguages": [ "it" ],
"timezone": "Europe/Rome",
"type": {
"otpRest": true
}
}
20 changes: 20 additions & 0 deletions data/it/torino-otp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Muoversi a Torino",
"coverage": {
"anyCoverage": {
"area": {
"coordinates": [ [ [ 6.83188, 45.03133 ], [ 7.32343, 45.73486 ], [ 7.32358, 45.73497 ], [ 8.26473, 46.06416 ], [ 8.47228, 45.94383 ], [ 8.53161, 45.88447 ], [ 8.57088, 45.84334 ], [ 8.628632, 45.726383 ], [ 8.67202, 45.35155 ], [ 8.683283, 44.882405 ], [ 8.678328, 44.403081 ], [ 8.220248, 44.043758 ], [ 8.03422, 43.90048 ], [ 7.512849, 43.938467 ], [ 6.93822, 44.39601 ], [ 6.83508, 44.93638 ], [ 6.83188, 45.03133 ] ] ],
"type": "Polygon"
},
"region": [ "IT-21" ]
}
},
"options": {
"endpoint": "https://mapi.5t.torino.it/routing/v1/routers/mat/"
},
"timezone": "Europe/Rome",
"supportedLanguages": [ "it" ],
"type": {
"otpGraphQl": true
}
}
20 changes: 20 additions & 0 deletions data/us/la-metro-otp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Los Angeles Metro",
"coverage": {
"anyCoverage": {
"area": {
"coordinates": [ [ [ -118.809037, 34.022151 ], [ -118.808978, 34.143394 ], [ -118.80884, 34.14387 ], [ -118.807322, 34.146898 ], [ -118.65693927239, 34.419754153355 ], [ -118.61772353405, 34.434719170387 ], [ -118.57494154687, 34.436765058366 ], [ -118.3930428244, 34.43706481063 ], [ -117.711253, 34.121709 ], [ -117.711613, 34.094773 ], [ -117.73279753881, 33.657105048338 ], [ -118.29252, 33.706853 ], [ -118.294531, 33.707365 ], [ -118.40309, 33.745209 ], [ -118.809037, 34.022151 ] ] ],
"type": "Polygon"
},
"region": [ "US-CA" ]
}
},
"options": {
"endpoint": "https://otp.metroservices.io/otp/routers/default/"
},
"supportedLanguages": [ "en" ],
"timezone": "America/Los_Angeles",
"type": {
"otpRest": true
}
}
20 changes: 20 additions & 0 deletions data/us/marta-otp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Marta",
"coverage": {
"anyCoverage": {
"area": {
"coordinates": [ [ [ -84.701564, 33.867512 ], [ -84.65646, 34.077262 ], [ -84.656428, 34.077357 ], [ -84.26965, 34.105609 ], [ -84.266494, 34.105822 ], [ -84.248608, 34.104237 ], [ -84.246876, 34.103721 ], [ -84.241578, 34.101539 ], [ -84.005038, 33.982187 ], [ -84.004367, 33.96005 ], [ -84.007821, 33.921209 ], [ -84.014637, 33.854053 ], [ -84.056727, 33.685082 ], [ -84.314471, 33.435981 ], [ -84.340934, 33.441836 ], [ -84.669803, 33.517397 ], [ -84.701564, 33.867512 ] ] ],
"type": "Polygon"
},
"region": [ "US-GA" ]
}
},
"options": {
"endpoint": "https://opentrip.atlantaregion.com/otp/routers/default/"
},
"supportedLanguages": [ "en" ],
"timezone": "America/New_York",
"type": {
"otpRest": true
}
}
20 changes: 20 additions & 0 deletions data/us/mbta-otp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Massachusetts Bay Transportation Authority (MBTA)",
"coverage": {
"anyCoverage": {
"area": {
"coordinates": [ [ [ -71.347133, 42.285719 ], [ -71.325404, 42.41342 ], [ -71.280995, 42.593248 ], [ -70.874801, 42.609212 ], [ -70.811405, 42.561651 ], [ -70.837529, 42.24421 ], [ -70.934405, 42.107156 ], [ -71.016534, 42.084659 ], [ -71.26151, 42.0951 ], [ -71.325217, 42.120694 ], [ -71.347133, 42.285719 ] ] ],
"type": "Polygon"
},
"region": [ "US-MA" ]
}
},
"options": {
"endpoint": "https://prod.otp.mbtace.com/otp/routers/mbta/"
},
"supportedLanguages": [ "en" ],
"timezone": "America/New_York",
"type": {
"otpRest": true
}
}
25 changes: 25 additions & 0 deletions data/us/trimet-otp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "TriMet",
"coverage": {
"anyCoverage": {
"area": {
"coordinates": [ [ [ -123.04452, 45.519998 ], [ -123.044484, 45.520284 ], [ -122.994384, 45.549727 ], [ -122.815496, 45.629438 ], [ -122.766013, 45.637726 ], [ -122.756281, 45.636553 ], [ -122.39933, 45.55503 ], [ -122.388561, 45.551362 ], [ -122.378245, 45.537293 ], [ -122.346691, 45.346034 ], [ -122.343322, 45.323908 ], [ -122.34333, 45.32204 ], [ -122.343643, 45.321402 ], [ -122.560059, 45.318713 ], [ -122.567026, 45.318708 ], [ -122.775493, 45.33519 ], [ -122.841555, 45.357395 ], [ -122.841956, 45.357534 ], [ -123.04452, 45.519998 ] ] ],
"type": "Polygon"
},
"region": [ "US-OR" ]
},
"realtimeCoverage": {
"area": {
"type": "Polygon"
}
}
},
"options": {
"endpoint": "https://maps.trimet.org/otp_mod/"
},
"supportedLanguages": [ "en" ],
"timezone": "America/Los_Angeles",
"type": {
"otpRest": true
}
}

0 comments on commit dc1cdb7

Please sign in to comment.