- Updates TR restriction params - PR #238
- use OJP 1.0 / 2.0 specific restriction params
- no more change for ContinuousLeg/Service in OJP 1.0
- use latest
ojp-shared-types- PR #237
- Updates npm publish - PR #236
- Updates TR API - PR #234
- updates setOriginDurationDistanceRestrictions, setDestinationDurationDistanceRestrictions APIs, use transportMode
- adds setMonomodalRequest, setTaxiRequest APIs
- use latest
ojp-shared-types- PR #233
- updates TR
- adds setWalkRequest payload modifier - PR #232
- use latest
ojp-shared-types- PR #231
- Updates docs - PR #229
- https://opentdatach.github.io/ojp-js/
- use
TypeDocto annotate the classes / methods - group categories:
Core,Request,Response,Geo, `XML Utils + OJP 1.0 - prepare to deprecate old models
- Fix OJPv1 TR params - PR #227
- fix OJPv1 TR setCarRequest()
- use OJPv1 ContinousService
- Fix departures-cli example - PR #228
- use OJP spec, adapt the calls, use new SDK to perform request / response
- Promote ojp-sdk-next as main - PR #225
- change package name back to
ojp-sdk - cleans up README
- change package name back to
- Fix OperatorRef - PR #224
- removes ns change hacks, OpenAPI specs are used now
- Fix TR OJPv1 - PR #223
- removes the hack that was also prepending "ojp:" to the OperatorRef values
- TR requests - PR #221
- adds support for TR OJPv1, v2
- enforce schema arrays per OJP version
- adds more TR params tweaking:
setMaxDurationWalkingTime,setNumberOfResults,setOrigin/Destination DurationDistanceRestrictions,setViaPlace
- updates API - PR #219
- updates TRR refine params
- use latest
ojp-shared-types
- refactor SDK - PR #210
- package
- bumps minor version to
0.21.x - declare
ojp-shared-typesas peerDependency
- bumps minor version to
- SDK constructor is now private and uses generics to differentiate between OJP versions
- use
OJP.SDK.create()to create a OJP 2.0 instance - or
OJP.SDK.v1()to create a OJP 1.0
- use
- update requests
- refactor creation to allow a clear separation between OJP v1 and OJP v2, adds request per OJP version/request type
- old static inits are kept, however a new construct mode is recommended
const ojpSDK = OJP.SDK.create('my_requestor_ref', httpConfig, 'de'); const request = ojpSDK.requests.LocationInformationRequest.initWithLocationName('Bern'); // instead of // const request = OJP.LocationInformationRequest.initWithLocationName('Bern');- update requests (continued)
- requests dont conform to XSD schemas anymore, a property
.payloadis used for that - updated requests, added LIR, SER for OJPv1
- request fetching + parsing is done now via
await request.fetchResponse(sdkInstance) call - see more changes in this short gist
- requests dont conform to XSD schemas anymore, a property
- updates XML parser
- changed parser, improve handling of the
#textnodes generated byfast-xml-parser - requests dont conform to XSD schemas anymore, a property
.payloadis used for that, therefore no more need for theMapModelKeepPropertiesXMLlookup hack inojp-shared-typesdependency
- changed parser, improve handling of the
- package
- use latest
ojp-shared-types- PR #215
- Fix OJPv1 GeneralAttribute - PR #213
- use new OJP_Types
GeneralAttributeSchema
- use new OJP_Types
- Params Updates - PR #212
- TR - adds filter helper for
RailSubmode - Place - adds support for OJP v1 init, adds
initWithOJPv1XMLSchemastatic initializer - use latest
ojp-shared-types- TR restriction mode filter requires now
ptMode,personalModearrays
- TR restriction mode filter requires now
- TR - adds filter helper for
- TR with IndividualTransportOption - PR #205
- adds
setMaxDurationWalkingTimemethod for TR requests with longer walking (at origin / destination) - adds Github workflow for npm publish automation
- adds
- use latest
ojp-shared-types- PR #201
- use latest
ojp-shared-types- PR #200
- TR car filter - add car routing support #190 - PR #193
- use latest
ojp-shared-types- PR #193
- use latest
ojp-shared-types- PR #191
- use latest
ojp-shared-types- PR #189
- fix parsing order - PR #185
- use latest
ojp-shared-types- PR #184
- LIR filter with PtMode - PR #182
- use latest
ojp-shared-typespackage - updates examples for PtMode filter (TR, LIR)
- use latest
- updates SDK - PR #181
- adds TRR, FareRequest initialisers with mock request / response
- adds tests for FareRequest
- updates SDK - PR #180
- updates
ojp-shared-types(TR paramswalkSpeed)
- updates
- Improve serialising - PR #178
- improve internal
buildXML, addsXmlSerializerfor outside SDK serialising objects to XML - harmonise FareRequest response, adds
fetchFareRequestResponsewithFareDeliverySchema - remove
Trip.rawXMLproperty - updates playground associated app
- improve internal
- harmonise SDK Response - PR #171
- harmonise SDK response, use
Promise<OJP_Response<OJP_Types.(LIR | TR | SER TIR), Error>>response type - deprecate older methods (i.e. the ones fetching individual Trip[])
- adds tests for SIRI-SX situation models
- harmonise SDK response, use
- adds TripInfoRequest request / response - PR #170
- dynamically build
MapParentArrayTags, dont rely onojp-shared-typespackage
- save raw XML for
Trip- PR #169
- export
RequestInfo
- (re-)adds FareRequest - PR #167
- use ojp-shared-types package - PR #166
- refactor/next version of the SDK (continued) - PR #139
- Adds TripRefinementRequest #151
- TR - Feature/trip response status #152
- TRR TripParam - Updates TRR #153
- refactor/next version of the SDK (continued) - PR #139
- refactor/next version of the SDK (continued) - PR #139
- fixed JSON (xml-parsed) traverse, catch case for expected empty arrays
- refactor/next version of the SDK (continued) - PR #139
- use dual builds (CommonJS and ESM) via
tsup
- use dual builds (CommonJS and ESM) via
- refactor/next version of the SDK (continued) - PR #139
- revert to use CJS module style
- refactor/next version of the SDK (continued) - PR #139
- use NodeNext, ESM style
- more robust NS parsing
- refactor/next version of the SDK (continued) - PR #139
- refactor/next version of the SDK - PR #139
- OJP 2.0 APIs is now used
- XSD schema is used for models
- bundle OJP demo app in examples/ojp-demo-app
- internal change, refactor params/request implementation - PR #137
- adds hack for OJP-SI to allow Trip nodes without Transfer children node - PR #138
- Changes namespaces - PR #135
- make
siri:default namespace - patch LIR
PointOfInterestto allow also none categories (support for OJP-SI)
- make
- Updates OJP Fare - PR #134
- refactor ApiConfig, removes default stages from SDK
- updates package, adds dependencies, disable request logs by default - PR #132
- updates nova fares - PR #130
- fix
PtModeFilter- PR #129
- remove
@types/mapbox-gl- PR #125 - flexible
TimedLegService init - PR #126 - expose OJP backend version (1.0 or 2.0) - PR #127
- fix multi-modal TR - Sharing doesn't work anymore #179 - PR #123
- adds TripRrequest filter for public transport modes - Adds mean of transport (bus, boat, etc.) option in the TR #170 - PR #119
- BREAKING CHANGE - extract client specific code from SDK
- refactor
NumberOfResults- PR #121- BREAKING CHANGE - allow also to give NumberOfResultsBefore and NumberOfResultsAfter, all optional, this way no need to send the NumberOfResultsType
- Fix Service real-time info parsing - PR #117
- adds ALTERNATIVE_TRANSPORT VehicleAccessType, New BehiG Info Icon #169 - PR #114
- simplify SIRI-SX situations creation - PR #115
- TripRequest updates - PR #111
- implement custom additional restrictions
min/maxDuration/Distance, they can be turned on/off on individual basis - adds via
DwellTimesupport - PR #110 - adds
footIndividualTransportMode, is used by OJP 2.0 - fares: expose
FareProductName
- implement custom additional restrictions
- Customize
NumberOfResults- PR #108
- Remove
ModeAndModeOfOperationFilter/siri:WaterSubmodewhich is for OJP2 - PR #106
- Fix
ViaTripRequestparams - PR #104
- Adds support for Via locations - PR #102
- Complete the
TripRequest.initWithTripLocationsAndDateconstructor to use all params - PR #102 - BREAKING CHANGE - remove JourneyRequest API, no more need for this, was added to support via using multiple
TripRequestrequests - PR #102 - Adds Cancelled, Deviation, Unplanned support for Service - PR #101
- BREAKING CHANGE - updates situations model - PR #101
- Update
StopEventsituations: use also line/route situations from Service - PR #100
- OJP localization support - PR #96
- BREAKING CHANGE - adds language param to all request API calls
- log OJP requests for
DEBUGenvs - PR #98
- Fix situations parser - PR #94
- In v1 there is no
<SituationFullRefs>container - validate situations on DEBUG stages
- allow situations with empty description / detail
- In v1 there is no
- Fix TripInfoRequest params - PR #93
- Updates situations/traffic/real-time info #91
- BREAKING CHANGE - SIRI-SX situations model changed
- BREAKING CHANGE -
StationBoardModelis removed from the SDK, should be implemented in the integrator - for TR send
UseRealtimeData=explanatoryto capture real-time info - adds support for trips with
Cancelled,InfeasableTrip status - adds support for
NotServicedStopproperty for TimedLeg points
- updates SDK version to
0.9.36- PR #90 - adds
TripInfoRequestsupport - PR #87 - adds
NumberOfResultsTypeto handle previous / nextTripResultconnections - PR #86 - adds
TripandTripRequestResponseXML serialization support- PR #89 - fix circular dependency - PR #85
- updates SDK version to
0.9.35- PR #84 - adds support for car water-ferry / car-shuttle train - PR #80, PR #82
- remove sorting of trips for special cases, should be done in the integrators - PR #83
- updates SDK version to
0.9.34- PR #79 - add support for
TransferMode, improveLegTransportMode- PR #78
- updates SDK version to
0.9.33- PR #77 - BREAKING CHANGE: change restriction type in
LocationInformationRequest: update types and use an array for restriction types (i.e. [stop,address]) - PR #73 - adds
GeoRestriction/Circleto LIR - PR #74 - adds support for car-shuttle-train (Autoverladezug) - PR #75
- improve
Location/Address- PR #71 - improve requests: allow LIR requests to use mocked XMLs, adds generic
XMLParser, adds center min, max long/lat members for GeoPositionBBOX - PR #72
- updates SDK version to
0.9.31- PR #68 - add tests - Add tests #67 - PR #66
- update docs - Adds docs SDK, update APIs #63 - PR #65
- updates SDK version to
0.9.30- PR #64 - updates
TripRequestAPI - PR #62 - fix
Location.POIshared mobility attributes - issue #60 - PR #61 - adds OJP Fare Support - OJP Fare Support #57 - PR #57
- adds PoC for TripRequest pagination - Create PoC exmaple for TripRequest pagination - PR #56
- expose
JourneyServiceattributes - PR #53 - adds
Dep/Arroption for TripRequest requests - PR #54 - updates SDK version to
0.9.29- PR #55
- fix
saxlib import - PR #49
- improve OJP APIs parser - PR #43
- adds platform assistance - PR #44
- updates SDK version to
0.9.25- PR #45
- migrate to a SAX-based parser for handling OJP API responses - PR #41
- add support to compute the trip distance from the individual legs - PR #40
- adds support for node v20 in examples
- cleanup left-overs
- improve handling of coordinates in
Locationobjects - PR #34
- allow better parsing of coordinates / names, support for Embed OJP Demo in other websites #45, PR #31
- adds new POI categories
other,sbb_servicesadapt POI categories #5
- adds support for
others-drive-car(limo) IndividualTransportMode - see #87 - remove
La Betastage hack for number of results inOJP.TripRequestcalls
- PR #27
- pretty print the XML payload in the OJP APIs calls
NumberOfResultsAfteris now default in theOJP.TripRequestcalls- use
PrivateModeFilterfor the OJP APIs calls - add helpers for reuse of the
OJP.StopEventRequestcalls
OJP.TripRequestchanges - see PR #26- restore
ojp:DepArrTime - allow toggling of the
<ojp:IncludeLegProjection>param - allow usage of either
ojp:NumberOfResultsAfterorojp:NumberOfResultsparam
- restore
- use strings for
StageConfig.key, dont force the consumer to use only predefined OJP stages - see #24 - adds support for taxi mode in
OJP.TripRequest- see #87, see PR #25
- small changes - see #23
- exports
Durationfor external usage - adds support for
taxiIndividualTransportMode inTripRequestcalls
- exports
- fix dependencies inclusion - see #20
- avoid usage of
allowSyntheticDefaultImportsby usingimport * as - declare
GeoJSONtypes - no need to import the heavy mapbox-gl lib, just need the TS
@types
- avoid usage of
- adds default stage to be used without registering a new key - see #21
- adds ./examples projects
- fix
xmldominclusion - see #19
- various small fixes - see #18
- use
cross-fetchandxmldomto enable usage also from command line - see #17- use
ES6for both target and module
- use
- add plus functionality to duration - see #16
- adds
LocationProbability and OriginSystem - see #15
- improve TripRequest - see #14
- removed
ojp:NumberOfResults, keep it only for TEST LA IndividualTransportOptionsis used only for monomodal, walk | cycle (own bicyicle) modes - with different max duration params- use
ItModesToCoverfor walk | self drive | cycle modes - use OJP
Extensionfor bicycle_rental | car_sharing | escooter_rental modes
- removed
- other changes - see #13
- use
self-drive-cartype for car sharing response types - fix on-demand bus mode that was matching also the normal bus routes
- add types to
Locationobject so we can differentiate between Stop, POI, TopographicPlace and Address - LIR name lookup requests can also filter by type, i.e.
Stop - adjust BBOX for the trips to include also the leg polylines
- use
- fix for broken taxi / booking data - see OJP demo app extension #87, #12
- Expose
ojp:LocationExtensionStructurenodes fromLocation- see Showing multiple Charging Points of One Charging Station #68, #9 - Adds support for more values of on-demand bus mode - #10
- Adds support for taxi / booking via
ojp:BookingArrangements/ojp:BookingArrangement- see OJP demo app extension #87, #11
- Show transfer path guidance on the map - see #5
- Updates documentation - see #6
- Adds support for Location TopographicPlace - see #7
- keep app stages in the OJP Demo app, outside of the SDK
- updates documentation
- initial commit