RecentSegmentProviderHibernateImpl Resource

An API to get information specific to SecurityLogic features. Also can be thought of as the RecentSegmentProvider.

GET /recentSegment/countRecentSegments

Count how many recent segments are returned in total by the search.

Request Parameters
name type description
search query The search to get a total count of.
Response Body
media type data type description
application/json number (JSON) The total count of recent segments for the search.
application/xml long (XML)

Example

Request
GET /recentSegment/countRecentSegments
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /recentSegment/countRecentSegmentsByParam

Get all of the recent segments/travelers based on a list of parameters.

Request Parameters
name type description constraints
airline query The airline id the travelers have flights with. long
client query The client that the travelers are traveling for. long
distance query The distance to search around the given point, in miles. int
endDate query The date to end searching. If this is blank it will only retrieve one location per traveler.  
flight query The flight number the travelers may be flying.  
lat query The latitude to search near. double
long query The longitude to search near. double
startDate query The date to start searching.  
Response Body
media type data type description
application/json number (JSON) A list of all recent segments that meet the parameter specifications.
application/xml long (XML)

Example

Request
GET /recentSegment/countRecentSegmentsByParam
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /recentSegment/getRecentAirlines

Get all of the recent airlines that travelers have been on.

Request Parameters
name type description
search query A search describing which airlines to search for.
Response Body
media type data type description
application/json array of DisplayName (JSON) A list of display names of airlines travelers have recently traveled.
application/xml list of displayName (XML)

Example

Request
GET /recentSegment/getRecentAirlines
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "id" : "...",
  "name" : "..."
} ]
                
              

GET /recentSegment/getRecentAirlinesByParam

Get all of the recent segments/travelers based on a list of parameters.

Request Parameters
name type description constraints
airline query The airline id the travelers have flights with. long
client query The client that the travelers are traveling for. long
distance query The distance to search around the given point, in miles. int
endDate query The date to end searching. If this is blank it will only retrieve one location per traveler.  
flight query The flight number the travelers may be flying.  
lat query The latitude to search near. double
long query The longitude to search near. double
startDate query The date to start searching.  
Response Body
media type data type description
application/json array of DisplayName (JSON) A list of all recent segments that meet the parameter specifications.
application/xml list of displayName (XML)

Example

Request
GET /recentSegment/getRecentAirlinesByParam
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "id" : "...",
  "name" : "..."
} ]
                
              

GET /recentSegment/getRecentAirlinesForAgent

Get all of the recent airlines that travelers have been on.

Request Parameters
name type description
search query A search describing with airlines to search for.
Response Body
media type data type description
application/json array of DisplayName (JSON) A list of display names of airlines travelers have recently traveled.
application/xml list of displayName (XML)

Example

Request
GET /recentSegment/getRecentAirlinesForAgent
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "id" : "...",
  "name" : "..."
} ]
                
              

GET /recentSegment/getRecentCityLocations

Get all of the recent cities of a list of clients.

Request Parameters
name type description
search query A search describing what to search for.
Response Body
media type data type description
application/json array of DisplayName (JSON) A list of display names that travelers are close to.
application/xml list of displayName (XML)

Example

Request
GET /recentSegment/getRecentCityLocations
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "id" : "...",
  "name" : "..."
} ]
                
              

GET /recentSegment/getRecentCityLocationsByParam

Get all of the recent segments/travelers based on a list of parameters.

Request Parameters
name type description constraints
airline query The airline id the travelers have flights with. long
client query The client that the travelers are traveling for. long
distance query The distance to search around the given point, in miles. int
endDate query The date to end searching. If this is blank it will only retrieve one location per traveler.  
flight query The flight number the travelers may be flying.  
lat query The latitude to search near. double
long query The longitude to search near. double
startDate query The date to start searching.  
Response Body
media type data type description
application/json array of DisplayName (JSON) A list of all recent segments that meet the parameter specifications.
application/xml list of displayName (XML)

Example

Request
GET /recentSegment/getRecentCityLocationsByParam
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "id" : "...",
  "name" : "..."
} ]
                
              

GET /recentSegment/getRecentFlights

Get all of the recent flights that travelers have been on.

Request Parameters
name type description
search query A search describing which flights to search for.
Response Body
media type data type description
application/json array of DisplayName (JSON) A list of displaynames of flights travelers have recently traveled.
application/xml list of displayName (XML)

Example

Request
GET /recentSegment/getRecentFlights
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "id" : "...",
  "name" : "..."
} ]
                
              

GET /recentSegment/getRecentFlightsByParam

Get all of the recent segments/travelers based on a list of parameters.

Request Parameters
name type description constraints
airline query The airline id the travelers have flights with. long
client query The client that the travelers are traveling for. long
distance query The distance to search around the given point, in miles. int
endDate query The date to end searching. If this is blank it will only retrieve one location per traveler.  
flight query The flight number the travelers may be flying.  
lat query The latitude to search near. double
long query The longitude to search near. double
startDate query The date to start searching.  
Response Body
media type data type description
application/json array of DisplayName (JSON) A list of all recent segments that meet the parameter specifications.
application/xml list of displayName (XML)

Example

Request
GET /recentSegment/getRecentFlightsByParam
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "id" : "...",
  "name" : "..."
} ]
                
              

GET /recentSegment/getRecentFlightsForAgent

Get all of the recent flights that travelers have been on.

Request Parameters
name type description
search query A search describing which flights to search for.
Response Body
media type data type description
application/json array of DisplayName (JSON) A list of displaynames of flights travelers have recently traveled.
application/xml list of displayName (XML)

Example

Request
GET /recentSegment/getRecentFlightsForAgent
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "id" : "...",
  "name" : "..."
} ]
                
              

GET /recentSegment/getRecentSegments

Get all of the recent segments of a list of clients.

Request Parameters
name type description
search query A search describing what to search for.
Response Body
media type data type description
application/json array of RecentSegment (JSON) A list of RecentSegments representing travel segments that passengers were last found in.
application/xml list of recentSegment (XML)

Example

Request
GET /recentSegment/getRecentSegments
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "travelerId" : 12345,
  "prefix" : "...",
  "firstName" : "...",
  "middleName" : "...",
  "lastName" : "...",
  "suffix" : "...",
  "itineraryId" : 12345,
  "address" : "...",
  "timestamp" : 12345,
  "clientId" : 12345,
  "clientName" : "...",
  "longitude" : 12345.0,
  "latitude" : 12345.0,
  "uid" : "...",
  "delayId" : 12345,
  "delayScore" : 12345.0,
  "alertId" : 12345,
  "alertScore" : 12345.0,
  "name" : "...",
  "cityId" : 12345,
  "alerts" : [ {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  }, {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  } ],
  "flight" : "...",
  "airline" : "...",
  "email" : "...",
  "phone" : "...",
  "citySummary" : "...",
  "countryName" : "...",
  "locationTimestamp" : 12345,
  "locationId" : 12345,
  "cityCode" : "...",
  "cityName" : "...",
  "regionCode" : "...",
  "regionName" : "...",
  "countryCode" : "...",
  "type" : "...",
  "utcTimestamp" : "...",
  "utcTimestampEnd" : "...",
  "position" : 12345,
  "recordLocator" : "...",
  "departments" : [ "...", "..." ],
  "airlineId" : 12345,
  "countryId" : 12345,
  "utcTripStart" : "...",
  "utcTripEnd" : "...",
  "firstOrLast" : true,
  "confirmation" : "..."
} ]
                
              

GET /recentSegment/getRecentSegmentsByParam

Get all of the recent segments/travelers based on a list of parameters.

Request Parameters
name type description constraints
airline query The airline id the travelers have flights with. long
client query The client that the travelers are traveling for. long
distance query The distance to search around the given point, in miles. int
endDate query The date to end searching. If this is blank it will only retrieve one location per traveler.  
endRow query int
flight query The flight number the travelers may be flying.  
lat query The latitude to search near. double
long query The longitude to search near. double
startDate query The date to start searching.  
startRow query int
Response Body
media type data type description
application/json array of RecentSegment (JSON) A list of all recent segments that meet the parameter specifications.
application/xml list of recentSegment (XML)

Example

Request
GET /recentSegment/getRecentSegmentsByParam
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "travelerId" : 12345,
  "prefix" : "...",
  "firstName" : "...",
  "middleName" : "...",
  "lastName" : "...",
  "suffix" : "...",
  "itineraryId" : 12345,
  "address" : "...",
  "timestamp" : 12345,
  "clientId" : 12345,
  "clientName" : "...",
  "longitude" : 12345.0,
  "latitude" : 12345.0,
  "uid" : "...",
  "delayId" : 12345,
  "delayScore" : 12345.0,
  "alertId" : 12345,
  "alertScore" : 12345.0,
  "name" : "...",
  "cityId" : 12345,
  "alerts" : [ {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  }, {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  } ],
  "flight" : "...",
  "airline" : "...",
  "email" : "...",
  "phone" : "...",
  "citySummary" : "...",
  "countryName" : "...",
  "locationTimestamp" : 12345,
  "locationId" : 12345,
  "cityCode" : "...",
  "cityName" : "...",
  "regionCode" : "...",
  "regionName" : "...",
  "countryCode" : "...",
  "type" : "...",
  "utcTimestamp" : "...",
  "utcTimestampEnd" : "...",
  "position" : 12345,
  "recordLocator" : "...",
  "departments" : [ "...", "..." ],
  "airlineId" : 12345,
  "countryId" : 12345,
  "utcTripStart" : "...",
  "utcTripEnd" : "...",
  "firstOrLast" : true,
  "confirmation" : "..."
} ]
                
              

GET /recentSegment/getRecentTravelerCountries

Get recent countries that travelers are in.

Request Parameters
name type description
search query
Response Body
media type data type description
application/json array of RecentCountry (JSON) A list of RecentCountries representing the number of travelers in each country.
application/xml list of recentCountry (XML)

Example

Request
GET /recentSegment/getRecentTravelerCountries
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "countryCode" : "...",
  "stateCode" : "...",
  "count" : 12345
} ]
                
              

GET /recentSegment/getRecentTravelerCountriesForAgent

Get recent countries that travelers the agent booked for are in.

Request Parameters
name type description
search query
Response Body
media type data type description
application/json array of RecentCountry (JSON) A list of RecentCountries representing the number of travelers in each country.
application/xml list of recentCountry (XML)

Example

Request
GET /recentSegment/getRecentTravelerCountriesForAgent
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "countryCode" : "...",
  "stateCode" : "...",
  "count" : 12345
} ]
                
              

GET /recentSegment/getTravelHistoryMarkers

Get coordinate data of past segments for logged in user

Request Parameters
name type description constraints
userId query long
Response Body
media type data type description
application/json array of TravelHistoryLatLng (JSON) list of coordinate data of past segments for logged in user
application/xml list of travelHistoryLatLng (XML)

Example

Request
GET /recentSegment/getTravelHistoryMarkers
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "regionId" : 12345,
  "countryId" : 12345,
  "latitude" : 12345.0,
  "longitude" : 12345.0
} ]
                
              

GET /recentSegment/getDashboardMarkers/{utcDate}

Get coordinate data of current travelers for given client

Request Parameters
name type description constraints
utcDate path  
clientId query Client id of the current travelers long
Response Body
media type data type description
application/json array of DashboardLatLng (JSON) list of dashboard markers including the latitude and longitude
application/xml list of dashboardLatLng (XML)

Example

Request
GET /recentSegment/getDashboardMarkers/{utcDate}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "travelerId" : 12345,
  "cityId" : 12345,
  "latitude" : 12345.0,
  "longitude" : 12345.0,
  "start" : "...",
  "end" : "...",
  "cityName" : "...",
  "firstName" : "...",
  "lastName" : "...",
  "itineraryId" : 12345,
  "stateOrCountry" : "..."
} ]
                
              

GET /recentSegment/getLocationsForItinRange/{start}/{end}/{clientId}/{myBookings}

This method has been deprecated.

Request Parameters
name type description constraints
clientId path long
end path int
myBookings path boolean
start path int
Response Body
media type data type description
application/json array of RecentSegment (JSON)
application/xml list of recentSegment (XML)

Example

Request
GET /recentSegment/getLocationsForItinRange/{start}/{end}/{clientId}/{myBookings}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "travelerId" : 12345,
  "prefix" : "...",
  "firstName" : "...",
  "middleName" : "...",
  "lastName" : "...",
  "suffix" : "...",
  "itineraryId" : 12345,
  "address" : "...",
  "timestamp" : 12345,
  "clientId" : 12345,
  "clientName" : "...",
  "longitude" : 12345.0,
  "latitude" : 12345.0,
  "uid" : "...",
  "delayId" : 12345,
  "delayScore" : 12345.0,
  "alertId" : 12345,
  "alertScore" : 12345.0,
  "name" : "...",
  "cityId" : 12345,
  "alerts" : [ {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  }, {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  } ],
  "flight" : "...",
  "airline" : "...",
  "email" : "...",
  "phone" : "...",
  "citySummary" : "...",
  "countryName" : "...",
  "locationTimestamp" : 12345,
  "locationId" : 12345,
  "cityCode" : "...",
  "cityName" : "...",
  "regionCode" : "...",
  "regionName" : "...",
  "countryCode" : "...",
  "type" : "...",
  "utcTimestamp" : "...",
  "utcTimestampEnd" : "...",
  "position" : 12345,
  "recordLocator" : "...",
  "departments" : [ "...", "..." ],
  "airlineId" : 12345,
  "countryId" : 12345,
  "utcTripStart" : "...",
  "utcTripEnd" : "...",
  "firstOrLast" : true,
  "confirmation" : "..."
} ]
                
              

GET /recentSegment/getLocationsForItinRangeV2/{start}/{end}/{clientId}/{myBookings}

Request Parameters
name type description constraints
clientId path long
end path int
myBookings path boolean
start path int
Response Body
media type data type description
application/json array of RecentSegment (JSON)
application/xml list of recentSegment (XML)

Example

Request
GET /recentSegment/getLocationsForItinRangeV2/{start}/{end}/{clientId}/{myBookings}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "travelerId" : 12345,
  "prefix" : "...",
  "firstName" : "...",
  "middleName" : "...",
  "lastName" : "...",
  "suffix" : "...",
  "itineraryId" : 12345,
  "address" : "...",
  "timestamp" : 12345,
  "clientId" : 12345,
  "clientName" : "...",
  "longitude" : 12345.0,
  "latitude" : 12345.0,
  "uid" : "...",
  "delayId" : 12345,
  "delayScore" : 12345.0,
  "alertId" : 12345,
  "alertScore" : 12345.0,
  "name" : "...",
  "cityId" : 12345,
  "alerts" : [ {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  }, {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  } ],
  "flight" : "...",
  "airline" : "...",
  "email" : "...",
  "phone" : "...",
  "citySummary" : "...",
  "countryName" : "...",
  "locationTimestamp" : 12345,
  "locationId" : 12345,
  "cityCode" : "...",
  "cityName" : "...",
  "regionCode" : "...",
  "regionName" : "...",
  "countryCode" : "...",
  "type" : "...",
  "utcTimestamp" : "...",
  "utcTimestampEnd" : "...",
  "position" : 12345,
  "recordLocator" : "...",
  "departments" : [ "...", "..." ],
  "airlineId" : 12345,
  "countryId" : 12345,
  "utcTripStart" : "...",
  "utcTripEnd" : "...",
  "firstOrLast" : true,
  "confirmation" : "..."
} ]
                
              

GET /recentSegment/getTravelersNearGeoLocation/{clientId}/{latitude}/{longitude}/{radius}

Returns all current travelers that are near the given alert

Request Parameters
name type description constraints
clientId path The client whose travelers to search long
latitude path Coordinate of the area around the alert to search double
longitude path Coordinate of the area around the alert to search double
radius path The radius of the area around the alert to search double
Response Body
media type data type description
application/json array of PassengerInformation (JSON) list of Passenger Information
application/xml list of passengerInformation (XML)

Example

Request
GET /recentSegment/getTravelersNearGeoLocation/{clientId}/{latitude}/{longitude}/{radius}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "age" : "...",
  "customNameData" : "...",
  "prefix" : "...",
  "firstName" : "...",
  "middleName" : "...",
  "lastName" : "...",
  "suffix" : "...",
  "worldspanName" : "...",
  "itinerary" : {
    "recordLocator" : "...",
    "agentName" : "...",
    "client" : {
      "status" : { },
      "parentClient" : { },
      "accountNumber" : "...",
      "name" : "...",
      "type" : { },
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "office" : {
      "pcc" : "...",
      "name" : "...",
      "address1" : "...",
      "address2" : "...",
      "address3" : "...",
      "city" : "...",
      "state" : "...",
      "zip" : "...",
      "parentCompany" : { },
      "active" : "...",
      "branch" : "...",
      "clientPrefix" : "...",
      "profileSettings" : { },
      "afterHoursNumber" : "...",
      "collectVoidLogs" : true,
      "gds" : { },
      "arcNumber" : "...",
      "logo" : "...",
      "logoLink" : "...",
      "afterHoursInternationalNumber" : "...",
      "tollFreeNumber" : "...",
      "phoneNumber" : "...",
      "onlineOffice" : { },
      "showTmcAppLinks" : true,
      "vipTollFree" : "...",
      "vipAfterHours" : "...",
      "cityCode" : { },
      "tmcHeadQuarters" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "departureDate" : 12345,
    "completionDate" : 12345,
    "importDate" : 12345,
    "gds" : {
      "code" : "...",
      "name" : "...",
      "enabled" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "hide" : true,
    "citySummary" : "...",
    "departureCity" : {
      "code" : "...",
      "countryCode" : "...",
      "latitude" : 12345.0,
      "longitude" : 12345.0,
      "name" : "...",
      "stateOrCountry" : "...",
      "airportName" : "...",
      "region" : { },
      "timeZone" : { },
      "retentionOnly" : true,
      "position" : 12345,
      "unique" : true,
      "alias" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "arrivalCity" : {
      "code" : "...",
      "countryCode" : "...",
      "latitude" : 12345.0,
      "longitude" : 12345.0,
      "name" : "...",
      "stateOrCountry" : "...",
      "airportName" : "...",
      "region" : { },
      "timeZone" : { },
      "retentionOnly" : true,
      "position" : 12345,
      "unique" : true,
      "alias" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "arrivalDate" : 12345,
    "utcArrivalDate" : 12345,
    "startDate" : 12345,
    "endDate" : 12345,
    "purpose" : "...",
    "explanation" : "...",
    "authorizationCode" : "...",
    "costCenterCode" : "...",
    "departmentCode" : "...",
    "clientCode" : "...",
    "regionCode" : "...",
    "billable" : "...",
    "travelerCode" : "...",
    "managerCode" : "...",
    "projectCode" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "user" : {
    "answer" : "...",
    "emailed" : true,
    "newUser" : true,
    "temporaryPassword" : "...",
    "question" : "...",
    "obeUserName" : "...",
    "obePassword" : "...",
    "obeSyncId" : "...",
    "created" : 12345,
    "emailedWhen" : 12345,
    "travelgpaLogin" : "...",
    "groups" : [ {
      "name" : "...",
      "permissions" : [ { }, { } ],
      "description" : "...",
      "role" : { },
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    }, {
      "name" : "...",
      "permissions" : [ { }, { } ],
      "description" : "...",
      "role" : { },
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    } ],
    "active" : true,
    "prefix" : "...",
    "firstName" : "...",
    "lastName" : "...",
    "middleName" : "...",
    "suffix" : "...",
    "email" : "...",
    "tripitAuthorized" : true,
    "supportTitle" : "...",
    "automatedNotifications" : true,
    "enableHotelAttachment" : true,
    "atHomeNotificationMethod" : {
      "name" : "...",
      "code" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "inTravelNotificationMethod" : {
      "name" : "...",
      "code" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "cellPhoneNumber" : "...",
    "defaultClient" : {
      "status" : { },
      "parentClient" : { },
      "accountNumber" : "...",
      "name" : "...",
      "type" : { },
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "defaultPlannerGroup" : {
      "status" : { },
      "parentClient" : { },
      "accountNumber" : "...",
      "name" : "...",
      "type" : { },
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "showWelcomeDialog" : true,
    "siteTour" : true,
    "unusedTicketEmail" : true,
    "surveyEmail" : true,
    "wt0EmailEnabled" : true,
    "wt0EmailDaily" : true,
    "wt0EmailDay" : 12345,
    "wt0EmailHour" : 12345,
    "marketingSubscribed" : true,
    "responsive" : true,
    "businessPhoneNumber" : "...",
    "homePhoneNumber" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "email" : "...",
  "position" : 12345,
  "passportLastDigits" : "...",
  "knownTravelerNumberLastDigits" : "...",
  "id" : 12345,
  "version" : 12345,
  "violations" : [ {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  }, {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  } ]
} ]
                
              

GET /recentSegment/getLocationsForItinRangeV3/{start}/{end}/{clientId}/{myBookings}/{utcDate}

Request Parameters
name type description constraints
clientId path long
end path int
myBookings path boolean
start path int
utcDate path  
Response Body
media type data type description
application/json array of RecentSegment (JSON)
application/xml list of recentSegment (XML)

Example

Request
GET /recentSegment/getLocationsForItinRangeV3/{start}/{end}/{clientId}/{myBookings}/{utcDate}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "travelerId" : 12345,
  "prefix" : "...",
  "firstName" : "...",
  "middleName" : "...",
  "lastName" : "...",
  "suffix" : "...",
  "itineraryId" : 12345,
  "address" : "...",
  "timestamp" : 12345,
  "clientId" : 12345,
  "clientName" : "...",
  "longitude" : 12345.0,
  "latitude" : 12345.0,
  "uid" : "...",
  "delayId" : 12345,
  "delayScore" : 12345.0,
  "alertId" : 12345,
  "alertScore" : 12345.0,
  "name" : "...",
  "cityId" : 12345,
  "alerts" : [ {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  }, {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  } ],
  "flight" : "...",
  "airline" : "...",
  "email" : "...",
  "phone" : "...",
  "citySummary" : "...",
  "countryName" : "...",
  "locationTimestamp" : 12345,
  "locationId" : 12345,
  "cityCode" : "...",
  "cityName" : "...",
  "regionCode" : "...",
  "regionName" : "...",
  "countryCode" : "...",
  "type" : "...",
  "utcTimestamp" : "...",
  "utcTimestampEnd" : "...",
  "position" : 12345,
  "recordLocator" : "...",
  "departments" : [ "...", "..." ],
  "airlineId" : 12345,
  "countryId" : 12345,
  "utcTripStart" : "...",
  "utcTripEnd" : "...",
  "firstOrLast" : true,
  "confirmation" : "..."
} ]