curl 'https://pelias.metroservices.io/v1/search?boundary.rect.max_lat=34.823193&boundary.rect.max_lon=-117.645604¬ &boundary.rect.min_lat=32.75004&boundary.rect.min_lon=-118.951721¬ &focus.point.lat=34.0528978&focus.point.lon=-118.2857686&ignore¬ LoadingBar=true&size=10&text=scripps%20college' \ -XGET \ -H 'Accept: application/json, text/plain, /' \ -H 'Accept-Encoding: br, gzip, deflate' \ -H 'Connection: keep-alive'
{ "geocoding": { "version": "0.2", "attribution": "http://pelias.mapzen.com/v1/attribution", "query": { "text": "scripps college", "size": 10, "private": false, "focus.point.lat": 34.0528978, "focus.point.lon": -118.2857686, "boundary.rect.min_lat": 32.75004, "boundary.rect.max_lat": 34.823193, "boundary.rect.min_lon": -118.951721, "boundary.rect.max_lon": -117.645604, "lang": { "name": "English", "iso6391": "en", "iso6393": "eng", "defaulted": false }, "querySize": 20 }, "engine": { "name": "Pelias", "author": "Mapzen", "version": "1.0" }, "timestamp": 1569544024707 }, "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.71035, 34.10387 ] }, "properties": { "id": "5394015", "gid": "geonames:venue:5394015", "layer": "venue", "source": "geonames", "source_id": "5394015", "name": "Scripps College", "confidence": 0.957, "distance": 53.411, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "neighbourhood": "North Pomona", "neighbourhood_gid": "whosonfirst:neighbourhood:85837921", "label": "Scripps College, Claremont, CA, USA" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.712471, 34.105087 ] }, "properties": { "id": "node:3835545349", "gid": "openstreetmap:venue:node:3835545349", "layer": "venue", "source": "openstreetmap", "source_id": "node:3835545349", "name": "Scripps College Press", "confidence": 0.89, "distance": 53.231, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "neighbourhood": "North Pomona", "neighbourhood_gid": "whosonfirst:neighbourhood:85837921", "label": "Scripps College Press, Claremont, CA, USA" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.70816, 34.103843 ] }, "properties": { "id": "way:150583701", "gid": "openstreetmap:venue:way:150583701", "layer": "venue", "source": "openstreetmap", "source_id": "way:150583701", "name": "Scripps Pool", "confidence": 0.66, "distance": 53.612, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "label": "Scripps Pool, Claremont, CA, USA" }, "bbox": [ -117.708293, 34.103655, -117.707997, 34.103885 ] }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.73296, 34.116443 ] }, "properties": { "id": "us/ca/los_angeles:4149a18374f6137d", "gid": "openaddresses:address:us/ca/los_angeles:4149a18374f6137d", "layer": "address", "source": "openaddresses", "source_id": "us/ca/los_angeles:4149a18374f6137d", "name": "964 Scripps Dr", "housenumber": "964", "street": "Scripps Dr", "postalcode": "91711", "confidence": 0.66, "distance": 51.505, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "neighbourhood": "North Pomona", "neighbourhood_gid": "whosonfirst:neighbourhood:85837921", "label": "964 Scripps Dr, Claremont, CA, USA" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.731802, 34.116915 ] }, "properties": { "id": "us/ca/los_angeles:0711fc8c71423e86", "gid": "openaddresses:address:us/ca/los_angeles:0711fc8c71423e86", "layer": "address", "source": "openaddresses", "source_id": "us/ca/los_angeles:0711fc8c71423e86", "name": "929 Scripps Dr", "housenumber": "929", "street": "Scripps Dr", "postalcode": "91711", "confidence": 0.66, "distance": 51.618, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "neighbourhood": "North Pomona", "neighbourhood_gid": "whosonfirst:neighbourhood:85837921", "label": "929 Scripps Dr, Claremont, CA, USA" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.73137, 34.1164 ] }, "properties": { "id": "us/ca/los_angeles:ab50436f0cf15d7b", "gid": "openaddresses:address:us/ca/los_angeles:ab50436f0cf15d7b", "layer": "address", "source": "openaddresses", "source_id": "us/ca/los_angeles:ab50436f0cf15d7b", "name": "916 Scripps Dr", "housenumber": "916", "street": "Scripps Dr", "postalcode": "91711", "confidence": 0.66, "distance": 51.65, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "neighbourhood": "North Pomona", "neighbourhood_gid": "whosonfirst:neighbourhood:85837921", "label": "916 Scripps Dr, Claremont, CA, USA" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.734008, 34.117076 ] }, "properties": { "id": "us/ca/los_angeles:91fb29d81ed999d0", "gid": "openaddresses:address:us/ca/los_angeles:91fb29d81ed999d0", "layer": "address", "source": "openaddresses", "source_id": "us/ca/los_angeles:91fb29d81ed999d0", "name": "1005 Scripps Dr", "housenumber": "1005", "street": "Scripps Dr", "postalcode": "91711", "confidence": 0.66, "distance": 51.419, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "neighbourhood": "North Pomona", "neighbourhood_gid": "whosonfirst:neighbourhood:85837921", "label": "1005 Scripps Dr, Claremont, CA, USA" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.710167, 34.105136 ] }, "properties": { "id": "node:3835498805", "gid": "openstreetmap:venue:node:3835498805", "layer": "venue", "source": "openstreetmap", "source_id": "node:3835498805", "name": "Scripps Graffiti Wall", "confidence": 0.66, "distance": 53.443, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "label": "Scripps Graffiti Wall, Claremont, CA, USA" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.710183, 34.104966 ] }, "properties": { "id": "node:3835500790", "gid": "openstreetmap:venue:node:3835500790", "layer": "venue", "source": "openstreetmap", "source_id": "node:3835500790", "name": "Scripps Rose Garden", "confidence": 0.66, "distance": 53.439, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "label": "Scripps Rose Garden, Claremont, CA, USA" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -117.72559, 34.116332 ] }, "properties": { "id": "us/ca/los_angeles:388766e99ca7c57e", "gid": "openaddresses:address:us/ca/los_angeles:388766e99ca7c57e", "layer": "address", "source": "openaddresses", "source_id": "us/ca/los_angeles:388766e99ca7c57e", "name": "656 Scripps Dr", "housenumber": "656", "street": "Scripps Dr", "postalcode": "91711", "confidence": 0.66, "distance": 52.177, "accuracy": "point", "country": "United States", "country_gid": "whosonfirst:country:85633793", "country_a": "USA", "region": "California", "region_gid": "whosonfirst:region:85688637", "region_a": "CA", "county": "Los Angeles County", "county_gid": "whosonfirst:county:102086957", "locality": "Claremont", "locality_gid": "whosonfirst:locality:85923671", "neighbourhood": "North Pomona", "neighbourhood_gid": "whosonfirst:neighbourhood:85837921", "label": "656 Scripps Dr, Claremont, CA, USA" } } ], "bbox": [ -117.734008, 34.103655, -117.707997, 34.117076 ] }
Example: get all current stops for the Blue Line (801):
curl 'https://otp.metroservices.io/otp/routers/default/index/routes/¬ uscalacmtarail:801/stops' \
-XGET \
-H 'Accept: application/json, text/plain, /' \
-H 'Accept-Encoding: br, gzip, deflate' \
-H 'Connection: keep-alive'
That request returns:
[{
"id": "uscalacmtarail:80153",
"code": "80153",
"name": "1st Street Station",
"lat": 33.76874,
"lon": -118.189362,
"cluster": "80153S"
}, {
"id": "uscalacmtarail:80109",
"code": "80109",
"name": "Del Amo Station",
"lat": 33.848222,
"lon": -118.211017,
"cluster": "80109S"
}, {
"id": "uscalacmtarail:80107",
"code": "80107",
"name": "Willow Street Station",
"lat": 33.807079,
"lon": -118.189834,
"cluster": "80107S"
}, {
"id": "uscalacmtarail:80108",
"code": "80108",
"name": "Wardlow Station",
"lat": 33.819865,
"lon": -118.19609,
"cluster": "80108S"
}, {
"id": "uscalacmtarail:80105",
"code": "80105",
"name": "Anaheim Street Station",
"lat": 33.78183,
"lon": -118.189384,
"cluster": "80105S"
}, {
"id": "uscalacmtarail:80106",
"code": "80106",
"name": "Pacific Coast Hwy Station",
"lat": 33.78909,
"lon": -118.189382,
"cluster": "80106S"
}, {
"id": "uscalacmtarail:80101",
"code": "80101",
"name": "Downtown Long Beach Station",
"lat": 33.768071,
"lon": -118.192921,
"cluster": "80101S"
}, {
"id": "uscalacmtarail:80102",
"code": "80102",
"name": "Pacific Ave Station",
"lat": 33.772258,
"lon": -118.1937,
"cluster": "80102S"
}, {
"id": "uscalacmtarail:80110",
"code": "80110",
"name": "Artesia Station",
"lat": 33.876082,
"lon": -118.222503,
"cluster": "80110S"
}, {
"id": "uscalacmtarail:80154",
"code": "80154",
"name": "5th Street Station",
"lat": 33.773598,
"lon": -118.189412,
"cluster": "80154S"
}, {
"id": "uscalacmtarail:80111",
"code": "80111",
"name": "Compton Station",
"lat": 33.89749,
"lon": -118.224249,
"cluster": "80111S"
}]
curl 'https://alerts.metroservices.io/developer/api/v2/alerts?api_key=xxxxxxxxxxxxxxxxxxxxxx&format=json' \
-XGET \
-H 'Accept: application/json, text/plain, /' \
-H 'Origin: https://www.metro.net' \
-H 'Accept-Encoding: br, gzip, deflate' \
-H 'Host: alerts.metroservices.io' \
-H 'Accept-Language: en-us' \
-H 'Referer: https://www.metro.net/service/advisories/' \
-H 'Connection: keep-alive'
Note that the Geocoder transforms place names to latitude/longitude.
curl 'https://otp.metroservices.io/otp/routers/default/plan?arriveBy=false&date=09-26-2019&fromPlace=34.055862,-118.234286&maxWalkDistance= 2253.0759999999996&mode=BUS,RAIL,TRAM,SUBWAY,WALK&numItineraries= 2&optimize=QUICK&showIntermediateStops=true&time=5:27pm&toPlace= 34.10387,-117.71035&wheelchair=false' \ -XGET \ -H 'Accept: application/json, text/plain, /' \ -H 'Accept-Encoding: br, gzip, deflate' \ -H 'Connection: keep-alive'
{ "requestParameters": { "date": "09-26-2019", "mode": "BUS,RAIL,TRAM,SUBWAY,WALK", "arriveBy": "false", "wheelchair": "false", "optimize": "QUICK", "showIntermediateStops": "true", "fromPlace": "34.055862,-118.234286", "toPlace": "34.10387,-117.71035", "maxWalkDistance": "2253.0759999999996", "time": "5:27pm", "numItineraries": "2" }, "plan": { "date": 1569544020000, "from": { "name": "Origin", "lon": -118.234286, "lat": 34.055862, "orig": "", "vertexType": "NORMAL" }, "to": { "name": "Destination", "lon": -117.71035, "lat": 34.10387, "orig": "", "vertexType": "NORMAL" }, "itineraries": [ { "duration": 5258, "startTime": 1569544020000, "endTime": 1569549278000, "walkTime": 901, "transitTime": 3720, "waitingTime": 637, "walkDistance": 1650.5325000000005, "walkLimitExceeded": false, "elevationLost": 0, "elevationGained": 0, "transfers": 0, "legs": [ { "startTime": 1569544020000, "endTime": 1569544102000, "departureDelay": 0, "arrivalDelay": 0, "realTime": false, "distance": 132.335, "pathway": false, "mode": "WALK", "route": "", "agencyTimeZoneOffset": -25200000, "interlineWithPreviousLeg": false, "from": { "name": "Origin", "lon": -118.234286, "lat": 34.055862, "departure": 1569544020000, "orig": "", "vertexType": "NORMAL" }, "to": { "name": "path", "lon": -118.23480500646632, "lat": 34.05584072376971, "arrival": 1569544102000, "departure": 1569544103000, "vertexType": "NORMAL" }, "legGeometry": { "points": "cpznEjsspUw@KA@hALJB?BC^ABCX?@CZIA", "length": 12 }, "rentedBike": false, "transitLeg": false, "duration": 82, "intermediateStops": [], "steps": [ { "distance": 33.307, "relativeDirection": "DEPART", "streetName": "Platform 7;8", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": false, "lon": -118.23429188006396, "lat": 34.05586285216829, "elevation": [] }, { "distance": 48.406000000000006, "relativeDirection": "LEFT", "streetName": "path", "absoluteDirection": "SOUTH", "stayOn": false, "area": false, "bogusName": true, "lon": -118.2342418, "lat": 34.056150800000005, "elevation": [] }, { "distance": 45.213, "relativeDirection": "RIGHT", "streetName": "Union Station Underground Walkway", "absoluteDirection": "WEST", "stayOn": false, "area": false, "bogusName": false, "lon": -118.2343318, "lat": 34.0557219, "elevation": [] }, { "distance": 5.409, "relativeDirection": "RIGHT", "streetName": "path", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": true, "lon": -118.2348151, "lat": 34.0557928, "elevation": [] } ] }, { "startTime": 1569544103000, "endTime": 1569544105000, "departureDelay": 0, "arrivalDelay": 0, "realTime": false, "distance": 0, "pathway": false, "mode": "WALK", "route": "", "agencyTimeZoneOffset": -25200000, "interlineWithPreviousLeg": false, "from": { "name": "Union Station - Metro Red & Purple Lines", "lon": -118.234249, "lat": 34.056197, "arrival": 1569544102000, "departure": 1569544103000, "vertexType": "NORMAL" }, "to": { "name": "UNION STATION/800 N ALAMEDA ST", "stopId": "6:10018", "lon": -118.23435634906, "lat": 34.056579508926, "arrival": 1569544105000, "departure": 1569544740000, "stopIndex": 0, "stopSequence": 0, "vertexType": "TRANSIT" }, "legGeometry": { "points": "erznEsspUXdB", "length": 2 }, "rentedBike": false, "transitLeg": false, "duration": 2, "intermediateStops": [], "steps": [ { "distance": 129.805, "relativeDirection": "RIGHT", "streetName": "Union Station - Metro Gold Line => UNION STATION/800 N ALAMEDA ST", "absoluteDirection": "SOUTHEAST", "stayOn": false, "area": false, "bogusName": false, "lon": -118.234759, "lat": 34.056061, "elevation": [] } ] }, { "startTime": 1569544740000, "endTime": 1569548460000, "departureDelay": 0, "arrivalDelay": 0, "realTime": false, "distance": 48036.401909817745, "pathway": false, "mode": "RAIL", "route": "ML SB", "agencyName": "Metrolink", "agencyUrl": "http://www.metrolinktrains.com/", "agencyTimeZoneOffset": -25200000, "routeType": 2, "routeId": "6:582.1", "interlineWithPreviousLeg": false, "headsign": "SAN BERNARDINO\"\"", "agencyId": "31", "tripId": "6:582.1-18-0-2857-1739-1925-2167-0-0-00-326_ML_1CR", "serviceDate": "20190926", "from": { "name": "UNION STATION/800 N ALAMEDA ST", "stopId": "6:10018", "lon": -118.23435634906, "lat": 34.056579508926, "arrival": 1569544105000, "departure": 1569544740000, "stopIndex": 0, "stopSequence": 0, "vertexType": "TRANSIT" }, "to": { "name": "CLAREMONT STATION/200 W 1ST ST", "stopId": "6:10040", "lon": -117.71547177074, "lat": 34.09390044496, "arrival": 1569548460000, "departure": 1569548461000, "stopIndex": 6, "stopSequence": 1579, "vertexType": "TRANSIT" }, "legGeometry": { "points": "qtznEvsspU{d@q|KmvAa_Y_x@g_Nsf@chLkHudZ_Ai}E", "length": 7 }, "routeShortName": "ML SB", "routeLongName": "METROLINK SAN BERNARDINO LINE", "rentedBike": false, "transitLeg": true, "duration": 3720, "intermediateStops": [ { "name": "CAL STATE LA STATION", "stopId": "6:10019", "lon": -118.16818749602, "lat": 34.062636155015, "arrival": 1569545580000, "departure": 1569545580000, "stopIndex": 1, "stopSequence": 201, "vertexType": "TRANSIT" }, { "name": "EL MONTE METROLINK STATION/10925 RAILROAD ST", "stopId": "6:10026", "lon": -118.03505261282, "lat": 34.076624852838, "arrival": 1569546240000, "departure": 1569546240000, "stopIndex": 2, "stopSequence": 608, "vertexType": "TRANSIT" }, { "name": "BALDWIN PARK STATION/3825 DOWNING AV", "stopId": "6:10028", "lon": -117.95821807644, "lat": 34.085748351241, "arrival": 1569546840000, "departure": 1569546840000, "stopIndex": 3, "stopSequence": 843, "vertexType": "TRANSIT" }, { "name": "COVINA STATION/600 N CITRUS AV", "stopId": "6:10030", "lon": -117.89019924123, "lat": 34.092080715893, "arrival": 1569547380000, "departure": 1569547380000, "stopIndex": 4, "stopSequence": 1050, "vertexType": "TRANSIT" }, { "name": "POMONA NORTH STATION/205 SANTA FE ST", "stopId": "6:10037", "lon": -117.75104863541, "lat": 34.093586043899, "arrival": 1569548160000, "departure": 1569548160000, "stopIndex": 5, "stopSequence": 1471, "vertexType": "TRANSIT" } ], "steps": [] }, { "startTime": 1569548461000, "endTime": 1569549278000, "departureDelay": 0, "arrivalDelay": 0, "realTime": false, "distance": 1517.826, "pathway": false, "mode": "WALK", "route": "", "agencyTimeZoneOffset": -25200000, "interlineWithPreviousLeg": false, "from": { "name": "CLAREMONT STATION/200 W 1ST ST", "stopId": "6:10040", "lon": -117.71547177074, "lat": 34.09390044496, "arrival": 1569548460000, "departure": 1569548461000, "stopIndex": 6, "stopSequence": 1579, "vertexType": "TRANSIT" }, "to": { "name": "Destination", "lon": -117.71035, "lat": 34.10387, "arrival": 1569549278000, "orig": "", "vertexType": "NORMAL" }, "legGeometry": { "points": "w}aoEvhnmU?cAF??U?UI?I?E?@?qA?[?_E?gE?cE@?Y?mA?qB?aCc@?yB??a@Ic@KUIQM?{D?OA_F@qAAAc@CQOY@y@K_@Kk@GOICkD?QBE@{AmB?Ma@?iB@O?@i@?A", "length": 47 }, "rentedBike": false, "transitLeg": false, "duration": 817, "intermediateStops": [], "steps": [ { "distance": 35.021, "relativeDirection": "DEPART", "streetName": "Platform 2", "absoluteDirection": "EAST", "stayOn": false, "area": false, "bogusName": false, "lon": -117.71547184191404, "lat": 34.09388419750691, "elevation": [] }, { "distance": 20.825, "relativeDirection": "LEFT", "streetName": "path", "absoluteDirection": "EAST", "stayOn": false, "area": false, "bogusName": true, "lon": -117.7151398, "lat": 34.0938432, "elevation": [] }, { "distance": 93.518, "relativeDirection": "LEFT", "streetName": "South College Avenue", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": false, "lon": -117.71491370000001, "lat": 34.093847700000005, "elevation": [] }, { "distance": 326.158, "relativeDirection": "CONTINUE", "streetName": "College Avenue", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": false, "lon": -117.71491800000001, "lat": 34.0946887, "elevation": [] }, { "distance": 159.93099999999998, "relativeDirection": "RIGHT", "streetName": "4th Street", "absoluteDirection": "EAST", "stayOn": false, "area": false, "bogusName": false, "lon": -117.71492140000001, "lat": 34.0976219, "elevation": [] }, { "distance": 264.39799999999997, "relativeDirection": "LEFT", "streetName": "path", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": true, "lon": -117.71318450000001, "lat": 34.0976262, "elevation": [] }, { "distance": 170.844, "relativeDirection": "CONTINUE", "streetName": "College Way", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": false, "lon": -117.7126288, "lat": 34.0996605, "elevation": [] }, { "distance": 118.11, "relativeDirection": "RIGHT", "streetName": "Columbia Avenue", "absoluteDirection": "EAST", "stayOn": false, "area": false, "bogusName": false, "lon": -117.7126252, "lat": 34.101196900000005, "elevation": [] }, { "distance": 115.486, "relativeDirection": "LEFT", "streetName": "Columbia Avenue", "absoluteDirection": "NORTH", "stayOn": true, "area": false, "bogusName": false, "lon": -117.7114772, "lat": 34.1016211, "elevation": [] }, { "distance": 213.53499999999997, "relativeDirection": "RIGHT", "streetName": "path", "absoluteDirection": "NORTHEAST", "stayOn": false, "area": false, "bogusName": true, "lon": -117.7114894, "lat": 34.102654300000005, "elevation": [] } ] } ], "tooSloped": false }, { "duration": 6758, "startTime": 1569544020000, "endTime": 1569550778000, "walkTime": 901, "transitTime": 3600, "waitingTime": 2257, "walkDistance": 1650.5325000000005, "walkLimitExceeded": false, "elevationLost": 0, "elevationGained": 0, "transfers": 0, "legs": [ { "startTime": 1569544020000, "endTime": 1569544102000, "departureDelay": 0, "arrivalDelay": 0, "realTime": false, "distance": 132.335, "pathway": false, "mode": "WALK", "route": "", "agencyTimeZoneOffset": -25200000, "interlineWithPreviousLeg": false, "from": { "name": "Origin", "lon": -118.234286, "lat": 34.055862, "departure": 1569544020000, "orig": "", "vertexType": "NORMAL" }, "to": { "name": "path", "lon": -118.23480500646632, "lat": 34.05584072376971, "arrival": 1569544102000, "departure": 1569544103000, "vertexType": "NORMAL" }, "legGeometry": { "points": "cpznEjsspUw@KA@hALJB?BC^ABCX?@CZIA", "length": 12 }, "rentedBike": false, "transitLeg": false, "duration": 82, "intermediateStops": [], "steps": [ { "distance": 33.307, "relativeDirection": "DEPART", "streetName": "Platform 7;8", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": false, "lon": -118.23429188006396, "lat": 34.05586285216829, "elevation": [] }, { "distance": 48.406000000000006, "relativeDirection": "LEFT", "streetName": "path", "absoluteDirection": "SOUTH", "stayOn": false, "area": false, "bogusName": true, "lon": -118.2342418, "lat": 34.056150800000005, "elevation": [] }, { "distance": 45.213, "relativeDirection": "RIGHT", "streetName": "Union Station Underground Walkway", "absoluteDirection": "WEST", "stayOn": false, "area": false, "bogusName": false, "lon": -118.2343318, "lat": 34.0557219, "elevation": [] }, { "distance": 5.409, "relativeDirection": "RIGHT", "streetName": "path", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": true, "lon": -118.2348151, "lat": 34.0557928, "elevation": [] } ] }, { "startTime": 1569544103000, "endTime": 1569544105000, "departureDelay": 0, "arrivalDelay": 0, "realTime": false, "distance": 0, "pathway": false, "mode": "WALK", "route": "", "agencyTimeZoneOffset": -25200000, "interlineWithPreviousLeg": false, "from": { "name": "Union Station - Metro Red & Purple Lines", "lon": -118.234249, "lat": 34.056197, "arrival": 1569544102000, "departure": 1569544103000, "vertexType": "NORMAL" }, "to": { "name": "UNION STATION/800 N ALAMEDA ST", "stopId": "6:10018", "lon": -118.23435634906, "lat": 34.056579508926, "arrival": 1569544105000, "departure": 1569546360000, "stopIndex": 0, "stopSequence": 0, "vertexType": "TRANSIT" }, "legGeometry": { "points": "erznEsspUXdB", "length": 2 }, "rentedBike": false, "transitLeg": false, "duration": 2, "intermediateStops": [], "steps": [ { "distance": 129.805, "relativeDirection": "RIGHT", "streetName": "Union Station - Metro Gold Line => UNION STATION/800 N ALAMEDA ST", "absoluteDirection": "SOUTHEAST", "stayOn": false, "area": false, "bogusName": false, "lon": -118.234759, "lat": 34.056061, "elevation": [] } ] }, { "startTime": 1569546360000, "endTime": 1569549960000, "departureDelay": 0, "arrivalDelay": 0, "realTime": false, "distance": 48036.401909817745, "pathway": false, "mode": "RAIL", "route": "ML SB", "agencyName": "Metrolink", "agencyUrl": "http://www.metrolinktrains.com/", "agencyTimeZoneOffset": -25200000, "routeType": 2, "routeId": "6:582.1", "interlineWithPreviousLeg": false, "headsign": "SAN BERNARDINO\"\"", "agencyId": "31", "tripId": "6:582.1-19-0-2857-1806-1951-2167-0-0-00-328_ML_1CR", "serviceDate": "20190926", "from": { "name": "UNION STATION/800 N ALAMEDA ST", "stopId": "6:10018", "lon": -118.23435634906, "lat": 34.056579508926, "arrival": 1569544105000, "departure": 1569546360000, "stopIndex": 0, "stopSequence": 0, "vertexType": "TRANSIT" }, "to": { "name": "CLAREMONT STATION/200 W 1ST ST", "stopId": "6:10040", "lon": -117.71547177074, "lat": 34.09390044496, "arrival": 1569549960000, "departure": 1569549961000, "stopIndex": 6, "stopSequence": 1579, "vertexType": "TRANSIT" }, "legGeometry": { "points": "qtznEvsspU{d@q|KmvAa_Y_x@g_Nsf@chLkHudZ_Ai}E", "length": 7 }, "routeShortName": "ML SB", "routeLongName": "METROLINK SAN BERNARDINO LINE", "rentedBike": false, "transitLeg": true, "duration": 3600, "intermediateStops": [ { "name": "CAL STATE LA STATION", "stopId": "6:10019", "lon": -118.16818749602, "lat": 34.062636155015, "arrival": 1569547140000, "departure": 1569547140000, "stopIndex": 1, "stopSequence": 201, "vertexType": "TRANSIT" }, { "name": "EL MONTE METROLINK STATION/10925 RAILROAD ST", "stopId": "6:10026", "lon": -118.03505261282, "lat": 34.076624852838, "arrival": 1569547800000, "departure": 1569547800000, "stopIndex": 2, "stopSequence": 608, "vertexType": "TRANSIT" }, { "name": "BALDWIN PARK STATION/3825 DOWNING AV", "stopId": "6:10028", "lon": -117.95821807644, "lat": 34.085748351241, "arrival": 1569548400000, "departure": 1569548400000, "stopIndex": 3, "stopSequence": 843, "vertexType": "TRANSIT" }, { "name": "COVINA STATION/600 N CITRUS AV", "stopId": "6:10030", "lon": -117.89019924123, "lat": 34.092080715893, "arrival": 1569548880000, "departure": 1569548880000, "stopIndex": 4, "stopSequence": 1050, "vertexType": "TRANSIT" }, { "name": "POMONA NORTH STATION/205 SANTA FE ST", "stopId": "6:10037", "lon": -117.75104863541, "lat": 34.093586043899, "arrival": 1569549660000, "departure": 1569549660000, "stopIndex": 5, "stopSequence": 1471, "vertexType": "TRANSIT" } ], "steps": [] }, { "startTime": 1569549961000, "endTime": 1569550778000, "departureDelay": 0, "arrivalDelay": 0, "realTime": false, "distance": 1517.826, "pathway": false, "mode": "WALK", "route": "", "agencyTimeZoneOffset": -25200000, "interlineWithPreviousLeg": false, "from": { "name": "CLAREMONT STATION/200 W 1ST ST", "stopId": "6:10040", "lon": -117.71547177074, "lat": 34.09390044496, "arrival": 1569549960000, "departure": 1569549961000, "stopIndex": 6, "stopSequence": 1579, "vertexType": "TRANSIT" }, "to": { "name": "Destination", "lon": -117.71035, "lat": 34.10387, "arrival": 1569550778000, "orig": "", "vertexType": "NORMAL" }, "legGeometry": { "points": "w}aoEvhnmU?cAF??U?UI?I?E?@?qA?[?_E?gE?cE@?Y?mA?qB?aCc@?yB??a@Ic@KUIQM?{D?OA_F@qAAAc@CQOY@y@K@Kk@GOICkD?QBE@{AmB?Ma@?iB@O?@i@?_A", "length": 47 }, "rentedBike": false, "transitLeg": false, "duration": 817, "intermediateStops": [], "steps": [ { "distance": 35.021, "relativeDirection": "DEPART", "streetName": "Platform 2", "absoluteDirection": "EAST", "stayOn": false, "area": false, "bogusName": false, "lon": -117.71547184191404, "lat": 34.09388419750691, "elevation": [] }, { "distance": 20.825, "relativeDirection": "LEFT", "streetName": "path", "absoluteDirection": "EAST", "stayOn": false, "area": false, "bogusName": true, "lon": -117.7151398, "lat": 34.0938432, "elevation": [] }, { "distance": 93.518, "relativeDirection": "LEFT", "streetName": "South College Avenue", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": false, "lon": -117.71491370000001, "lat": 34.093847700000005, "elevation": [] }, { "distance": 326.158, "relativeDirection": "CONTINUE", "streetName": "College Avenue", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": false, "lon": -117.71491800000001, "lat": 34.0946887, "elevation": [] }, { "distance": 159.93099999999998, "relativeDirection": "RIGHT", "streetName": "4th Street", "absoluteDirection": "EAST", "stayOn": false, "area": false, "bogusName": false, "lon": -117.71492140000001, "lat": 34.0976219, "elevation": [] }, { "distance": 264.39799999999997, "relativeDirection": "LEFT", "streetName": "path", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": true, "lon": -117.71318450000001, "lat": 34.0976262, "elevation": [] }, { "distance": 170.844, "relativeDirection": "CONTINUE", "streetName": "College Way", "absoluteDirection": "NORTH", "stayOn": false, "area": false, "bogusName": false, "lon": -117.7126288, "lat": 34.0996605, "elevation": [] }, { "distance": 118.11, "relativeDirection": "RIGHT", "streetName": "Columbia Avenue", "absoluteDirection": "EAST", "stayOn": false, "area": false, "bogusName": false, "lon": -117.7126252, "lat": 34.101196900000005, "elevation": [] }, { "distance": 115.486, "relativeDirection": "LEFT", "streetName": "Columbia Avenue", "absoluteDirection": "NORTH", "stayOn": true, "area": false, "bogusName": false, "lon": -117.7114772, "lat": 34.1016211, "elevation": [] }, { "distance": 213.53499999999997, "relativeDirection": "RIGHT", "streetName": "path", "absoluteDirection": "NORTHEAST", "stayOn": false, "area": false, "bogusName": true, "lon": -117.7114894, "lat": 34.102654300000005, "elevation": [] } ] } ], "tooSloped": false } ] }, "debugOutput": { "precalculationTime": 30, "pathCalculationTime": 209, "pathTimes": [ 85, 124 ], "renderingTime": 1, "totalTime": 240, "timedOut": false }, "elevationMetadata": { "ellipsoidToGeoidDifference": -34.300757718908784, "geoidElevation": false } }
Copyright © 2017-2021 Metro | For everyone who wants to make transit better!