<back to API Operations

/em/stop/eta

The following routes are available for this service:
GET/em/stop/eta/{SCEMID}DEPRECATED get current etaGet the current ETA by the specified SCEM-ID instead of getting notified
Parameters:
NameParameterData TypeRequiredDescription
SCEMIDpathYesA 10 digit identifier (SCEM-ID) for a stop
SourcequerystringNoName of the event provider: Examples are ptvemapp, ptvemportal, jmeter, any customer specific app

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON Request

The following are sample HTTP requests. The placeholders shown need to be replaced with actual values.

GET /em/stop/eta HTTP/1.1 
Host: eta.cloud.ptvgroup.com 
Content-Type: application/json
Content-Length: length

{
  "scemid": "String",
  "source": "String"
}
                    

HTTP + JSON Response

The following are sample HTTP responses. The placeholders shown need to be replaced with actual values.

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{
  "stopSCEMID": "String",
  "plannedETA": "0001-01-01T00:00:00+00:00",
  "eta": "0001-01-01T00:00:00+00:00",
  "etaSource": "PLANNED_TOUR_ETA",
  "coordinate": {
    "locationX": 0,
    "locationY": 0
  },
  "relatedTime": "0001-01-01T00:00:00+00:00",
  "info": "String",
  "trafficTimeLoss": 0,
  "lastState": "String",
  "responseStatus": {
    "errorCode": "String",
    "message": "String",
    "stackTrace": "String",
    "errors": [
      {
        "errorCode": "String",
        "fieldName": "String",
        "message": "String",
        "meta": {
          "String": "String"
        }
      }
    ],
    "meta": {
      "String": "String"
    }
  }
}