Skip to content

Commit

Permalink
Merge pull request #10 from openTdataCH/feature/support-demand-bus
Browse files Browse the repository at this point in the history
Feature/support demand bus
  • Loading branch information
vasile authored Feb 19, 2023
2 parents 74e5fe9 + 396879b commit 2d9d87e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 0.9.4 - 19.02.2023
- Expose `ojp:LocationExtensionStructure` nodes from `Location` - see [Showing multiple Charging Points of One Charging Station #68](https://github.com/openTdataCH/ojp-demo-app-src/issues/68), [#9](https://github.com/openTdataCH/ojp-js/pull/9)
- Adds support for more values of on-demand bus mode - [#10](https://github.com/openTdataCH/ojp-js/pull/10)

## 0.9.3 - 22.01.2023
- Show transfer path guidance on the map - see [#5](https://github.com/openTdataCH/ojp-js/pull/5)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Include the `ojp-sdk` package in the `./package.json` dependencies of your proje

```
"dependencies": {
"ojp-sdk": "0.9.3"
"ojp-sdk": "0.9.4"
}
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ojp-sdk",
"version": "0.9.3",
"version": "0.9.4",
"description": "OJP (Open Journey Planner) Javascript SDK",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/journey/public-transport-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class PublicTransportMode {
const publicTransportMode = new PublicTransportMode(ptMode, name, shortName)

const busSubmode = XPathOJP.queryText('ojp:Mode/siri:BusSubmode', serviceNode)
publicTransportMode.isDemandMode = busSubmode === 'demandAndResponseBus'
publicTransportMode.isDemandMode = busSubmode !== null

return publicTransportMode
}
Expand Down

0 comments on commit 2d9d87e

Please sign in to comment.