Common Objects
Contents
JSON objects that describe things such as addresses and longitude/latitude coordinates are used in POST method calls to multiple APIs. The tables below describe several of those common JSON objects.
Address
| Data Element | Description | Data Type | Value/Example |
|---|---|---|---|
StreetAddress
| The house number and street name |
string | 495 Walker Road |
City
| The name of the city |
string | Endicott |
State
| The two letter state abbreviation |
string | NY |
Zip
| The postal code or zip |
string | 13760 |
County
| The county or jurisdiction. |
string | Broome |
Country
| The name of the country |
string | United States |
SPLC
| The Standard Point Location code to use in place of street/city/state/zip |
string | 656972001 |
CountryPostalFilter
| The postal code filter, which is used to filter ZIP codes by country. Use 0-us when the ZIP code is within the US, use 1-em when the ZIP code is in Mexico and use 2-both when the ZIP code is in both countries and results from both countries are desired. This parameter is for North America only and is ignored for stops in other regions. Default is 0-us.
|
Enum | 0 - US1 - EM (Mexico)2 - Both
|
AbbreviationFormat
| The abbreviation format for the country code. It also applies to state abbreviations in Mexico. Default is FIPS. |
Enum | FIPS ISO2 ISO3 GENC2 GENC3 |
StateName
| The full name of the state. |
string | Pennsylvania |
StateAbbreviation
| Abbreviated state code corresponding to requested format. |
string | PA |
CountryAbbreviation
| Abbreviated country code corresponding to requested format. |
string | CA |
Example
"Address": {
"StreetAddress": "1400 John F Kennedy Blvd",
"City": "Philadelphia",
"State": "PA",
"Zip": "19107",
"County": "Philadelphia",
"Country": "United States",
"SPLC": null,
"CountryPostalFilter": 0,
"AbbreviationFormat": 0,
"StateName": "Pennsylvania",
"StateAbbreviation": "PA",
"CountryAbbreviation": "US"
},
Coords
| Data Element | Description | Data Type | Value/Example |
|---|---|---|---|
Lat
| Latitude in decimal degrees or integer microdegrees. |
string | 42.12345 |
Lon
| Longitude in decimal degrees or integer microdegrees. |
string | -76.12345 |
Example
"Coords": {
"Lat": "39.965177",
"Lon": "-75.152564"
},
EstimatedTimeOptions
| Data Element | Description | Data Type | Value/Example |
|---|---|---|---|
ETAETD
| Whether you want to set an arrival or a departure time for your trip. |
integer | 0 for Arrival1 for Departure
|
DateOption
| How you want to specify your arrival or departure time. |
Enum | 0 for Current time1 for Specific time2 for DayOfWeek.
|
DateAndTime
| An object with the following values: CalendarDate, DayOfWeek, TimeOfDay, TimeZone, or Timestamp
|
object | |
CalendarDate
| A string value for the month, day and year in the following format mm/dd/yyyy. DateOption must be set to 1 for this value to be used.
|
string | 3/23/2024 |
DayOfWeek
| Day of the week, starting at 0 - Sunday, 1 - Monday, 2 - Tuesday and so on. DateOption must be set to 2 for this value to be used.
|
Enum | 2 |
TimeOfDay
| A time string in 12-hour h:mm AM/PM or 24-hour HH:mm format.
|
string | 6:00 AM 14:30 |
TimeZone
| Set to 0 for local time. When setting a departure time, within 15 minutes of the current time, the current time will be returned in the response.
|
Enum | 2 |
Timestamp (Mileage, State, and HOS reports only; available in PCM39 and later)
| Sets the time of arrival or departure. Supported formats are UTC (2025-04-29T20:27:30Z), with a UTC offset (2025-04-29T08:27:30-12:00), or without an offset (2025-04-29T20:27:30 or 2025-04-29T20:27). DateOption must be set to 1 (Specific time). When Timestamp is passed, the other DateAndTime fields are ignored. The response EtaEtd is returned in local time with the UTC offset, in yyyy-MM-ddThh:mm:ss+/-HH:mm format.
|
string | 2025-05-12T15:00:00+01:00 |
Example
"EstimatedTimeOptions": {
"ETAETD": 1,
"DateOption": 0,
"DateAndTime": {
"CalendarDate": "3/23/2024",
"DayOfWeek": 3,
"TimeOfDay": "07:00 AM",
"TimeZone": 0
}
},
Example with Timestamp
"EstimatedTimeOptions": {
"ETAETD": 1,
"DateOption": 0,
"DateAndTime": {
"Timestamp": "2025-05-12T15:00:00+01:00"
}
},
Response with Timestamp
"EtaEtd": "2025-05-12T15:00:00+01:00"