TravelAlertsProvider Service

Fetches travel alerts from http://www.etraveladvisories.com/

Namespace
http://external.service.cbtweb.cbt.com/
WSDL
external.wsdl
Path
/TravelAlertsProviderService

fetchAlerts Operation

Fetch recent alerts and store them in the database

Input Parameters
name type description
id long fetches all alerts after the give id. If id is null, it will get the last alert id from the database.
Return Value
type description
list of long  

getLastAlert Operation

Returns the most recent alert in the database

Return Value
type description
travelAlert  

getCurrentAlertsByGeoLocation Operation

Returns the current alerts for a given location

Input Parameters
name type description
lat double The latitude of the center
lng double The longitude of the center
radius double The radius of the area to search
Return Value
type description
list of travelAlert  

getCurrentAlertsByState Operation

Returns current statewide alerts

Input Parameters
name type description
stateCode string  
Return Value
type description
list of travelAlert  

getCurrentAlertsByCountry Operation

Returns current countrywide alerts

Input Parameters
name type description
countryCode string  
Return Value
type description
list of travelAlert  

getCurrentAlertsByGlobal Operation

Returns all global alerts

Return Value
type description
list of travelAlert  

getTravelersNearTravelAlert Operation

Returns all current travelers that are near the given alert

Input Parameters
name type description
clientId long The client whose travelers to search
alertId long The alert id
radius double The radius of the area around the alert to search
Return Value
type description
list of passengerInformation  

getAllCurrentAlerts Operation

Returns all current alerts

Return Value
type description
list of travelAlert  

searchTravelAlerts Operation

Search the travel alerts table

Input Parameters
name type description
list searchList  
Return Value
type description
list of travelAlert  

getTravelAlertCount Operation

Input Parameters
name type description
list searchList  
Return Value
type description
long  

searchNotifications Operation

Search notifications

Input Parameters
name type description
list searchList  
Return Value
type description
list of travelAlertNotification  

deliverAlertsForStartingTrips Operation

deliverAlert Operation

Sends travel alert notification to all active travelers

Input Parameters
name type description
id long  

scheduleNotification Operation

Schedules a travel alert notification.

Input Parameters
name type description
userId long The id of the AirPortal user. Can be null if an email address exists.
name string  
email string The email address if no user exists.
clientId long The id of the AirPortal account to which the traveler belongs
alertId long The id of the Travel Alert
message string The custom message. This can be null.
checkinRequired boolean  
travelerId long  
Return Value
type description
notificationStatus A Notification Status

scheduleNotificationForUsers Operation

For mobile we found that the bandwidth for the phone could not handle doing each traveler one at a time, so this is a notification method that allows a list of ids/emails to be done in a batch.

Input Parameters
name type description
userOrEmail list of displayTraveler  
clientId long  
alertId long  
message string  
checkinRequired boolean  
Return Value
type description
list of notificationStatus A list of notification statuses.

scheduleNotificationForUsers2 Operation

Similar to scheduleNotificationForUsers except the client ids are provided in the DisplayTraveler object

Input Parameters
name type description
userOrEmail list of displayTraveler  
alertId long  
message string  
checkinRequired boolean  
Return Value
type description
list of notificationStatus