-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from OneBusAway/release-please--branches--mai…
…n--changes--next--components--onebusaway-sdk release: 0.1.0-alpha.40
- Loading branch information
Showing
140 changed files
with
1,238 additions
and
581 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "0.1.0-alpha.39" | ||
".": "0.1.0-alpha.40" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 27 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-e4779565160778ba4193bbe8b27556a49f0f8c31ef15ac72c9ee1eb791f92d33.yml | ||
configured_endpoints: 28 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-b2ed1f0adc6090a8bea561c2a33d10e568a72db450c59858ea8e41cf3127c398.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import onebusaway from '../dist/index.mjs'; | ||
import { loadSettings } from './helpers/load-env.mjs'; | ||
|
||
// Load settings from .env file, if it exists. If not, we'll use the | ||
// Puget Sound server URL (which is also the default in the SDK) and | ||
// the 'TEST' API key. | ||
const settings = loadSettings({ | ||
apiKey: 'TEST', | ||
baseUrl: 'https://api.pugetsound.onebusaway.org/', | ||
}); | ||
|
||
// Create a new instance of the OneBusAway SDK with the settings we loaded. | ||
const oba = new onebusaway(settings); | ||
|
||
async function main() { | ||
const query = { | ||
lat: 47.6097, // required, type your latitude here | ||
lon: -122.3331, // required, type your longitude here | ||
}; | ||
|
||
const response = await oba.routesForLocation.list(query); | ||
|
||
console.log(response.data); | ||
} | ||
|
||
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import onebusaway from '../dist/index.mjs'; | ||
import { loadSettings } from './helpers/load-env.mjs'; | ||
|
||
// Load settings from .env file, if it exists. If not, we'll use the | ||
// Puget Sound server URL (which is also the default in the SDK) and | ||
// the 'TEST' API key. | ||
const settings = loadSettings({ | ||
apiKey: 'TEST', | ||
baseUrl: 'https://api.pugetsound.onebusaway.org/', | ||
}); | ||
|
||
// Create a new instance of the OneBusAway SDK with the settings we loaded. | ||
const oba = new onebusaway(settings); | ||
|
||
async function main() { | ||
const routeId = '1_100223'; | ||
|
||
const query = { | ||
date: '2024-08-20', // response code 510 - returned if the route has no schedules for the day requested | ||
}; | ||
|
||
const response = await oba.scheduleForRoute.retrieve(routeId, query); | ||
|
||
console.log(response.data); | ||
} | ||
|
||
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import onebusaway from '../dist/index.mjs'; | ||
import { loadSettings } from './helpers/load-env.mjs'; | ||
|
||
// Load settings from .env file, if it exists. If not, we'll use the | ||
// Puget Sound server URL (which is also the default in the SDK) and | ||
// the 'TEST' API key. | ||
const settings = loadSettings({ | ||
apiKey: 'TEST', | ||
baseUrl: 'https://api.pugetsound.onebusaway.org/', | ||
}); | ||
|
||
// Create a new instance of the OneBusAway SDK with the settings we loaded. | ||
const oba = new onebusaway(settings); | ||
|
||
async function main() { | ||
const response = await oba.tripsForRoute.list('1_100224'); | ||
console.log(response.data.list[0]); | ||
} | ||
|
||
main(); |
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "onebusaway-sdk", | ||
"version": "0.1.0-alpha.39", | ||
"version": "0.1.0-alpha.40", | ||
"description": "The official TypeScript library for the Onebusaway SDK API", | ||
"author": "Onebusaway SDK <[email protected]>", | ||
"types": "dist/index.d.ts", | ||
|
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.