Skip to content

Search Results Page (SRP)

The Search Results Page (SRP) is where users can filter the list of vehicles.

SRP
Search query
query Vehicles(
$skip: Int!
$take: Int!
$latitude: Float
$longitude: Float
$maxPrice: Float
$maxPriceDuration: Int
$distance: Float
$distanceUnit: DistanceUnit
$locationId: ID
$makes: [String!]
$models: [String!]
$bodyStyles: [String!]
$fuelTypes: [String!]
$isAvailableNow: Boolean
$includeComingSoon: Boolean
$contractType: ContractType
) {
vehicles(
query: {
skip: $skip
take: $take
latitude: $latitude
longitude: $longitude
distance: $distance
distanceUnit: $distanceUnit
maxPrice: $maxPrice
maxPriceDuration: $maxPriceDuration
locationId: $locationId
makes: $makes
models: $models
bodyStyles: $bodyStyles
fuelTypes: $fuelTypes
isAvailableNow: $isAvailableNow
includeComingSoon: $includeComingSoon
contractType: $contractType
}
) {
edges {
node {
id
year
make
model
trim
driveType
status
rideshareEligible
dealerId
isRegistrationPending
availableDate
pricing {
value
duration
durationUnit
leaseValues
}
location {
id
name
phoneNumber
address {
address1
address2
city
state
country
}
latitude
longitude
setupDelay
}
featureImage {
url
}
}
}
totalCount
pageInfo {
hasNextPage
}
}
}
enum DistanceUnit {
MI
KM
}
enum ContractType {
LEASE
SUBSCRIPTION
}