Skip to main content

POST /confirm-move-eligibility

This endpoint is used to determine whether the provided coordinates for a pickup or delivery location fall within an active Hopdrive service region. It accepts latitude and longitude coordinates for both pickup and delivery locations and checks if either or both locations are within a designated service area.

Example Request

POST /v1/confirm-move-eligibility
{
"pickup_location" : {
"name": "The White House",
"address_one": "1600 Pennsylvania Ave NW",
"city": "Washington",
"state": "DC",
"zip": "20500",
"latitude": 38.8977,
"longitude": -77.0365
},
"delivery_location" : {
"name": "The Capitol",
"address_one": "East Capitol St NE & First St SE",
"city": "Washington",
"state": "DC",
"zip": "20004",
"latitude": 38.8899,
"longitude": -77.0091
}
}

Body Params

FieldTypeRequired?Description
latitudeNumberRequiredLatitude associated with the pickup or delivery location.
longitudeNumberRequiredLongitude associated with the pickup or delivery location.
nameStringOptionalName associated with the location.
full_addressStringOptionalThe full address string of the location (Address pieces are no longer required if this field has a value).
address_oneStringOptionalThe street address of the location.
address_twoStringOptionalOptional sub-address of the location.
cityStringOptionalThe city that the location address is associated with.
stateStringOptionalThe state that the location address is associated with.
zipStringOptionalThe 5-digit Zip Code that the location address is associated with.

Request Object Structure

{
pickup_location : {
name, //optional
address_one, //optional
address_two, //optional
city, //optional
state, //optional
zip, //optional
latitude,
longitude
},
delivery_location : {
name, //optional
address_one, //optional
address_two, //optional
city, //optional
state, //optional
zip, //optional
latitude,
longitude
}
}

Example Response

For additional information, see the response section.

200 /v1/confirm-move-eligibility
{
"is_within_supported_region": true,
"pickup_location": {
"name": "The White House",
"address_one": "1600 Pennsylvania Ave NW",
"city": "Washington",
"state": "DC",
"zip": "20500",
"latitude": 38.8977,
"longitude": -77.0365,
"is_within_supported_region": true
},
"delivery_location": {
"name": "The Capitol",
"address_one": "East Capitol St NE & First St SE",
"city": "Washington",
"state": "DC",
"zip": "20004",
"latitude": 38.8899,
"longitude": -77.0091,
"is_within_supported_region": true
}
}