Get GPS API Overview
The Get GPS API handles the retrieval of GPS location of the active reservations. Use an access token (Bearer) or a legacy token to authenticate. We provide several ways to get the GPS location of the active reservations.- Get the GPS location of the active reservation by resno.
- Get the GPS location of the active reservations by griddid.
- Get the GPS location of the active reservations by transactionId.
- Get the GPS location of multiple reservations by an array of reservation numbers.
- Get the GPS location of multiple reservations by an array of transaction IDs.
Authentication
Use one of these HTTP headers. Both credentials come from the Get Token API, but the response fields are different:
Send the credential in the header, not in the URL or body.
Example request
SetGNET_LEGACY_TOKEN in your environment and replace YOUR_GNET_ID with your GNet ID:
Authorization: Bearer <your_access_token>.
Error Responses
401 - Unauthorized
No valid credential authenticated the request. Check that the credential matches the header you’re using.403 - Forbidden
On endpoints that return this status, the request authenticated but the caller is not allowed to access the requested location data.Response Body Schema
[NOTE] The attributeschfId,chfName,phoneNo, andpicURLare legacy fields kept for backward compatibility. We recommend using the more comprehensivechauffeurandvehicleobjects for richer data.
GetLocationByGriddid
Get the GPS location of the active reservations by griddid.GET https://location.grdd.net/api/GGPS.svc/GetLocationByGriddid/{griddid}
Example Response
GetLocationByRes
Get the GPS location of the active reservation by resno.GET https://location.grdd.net/api/GGPS.svc/GetLocationByRes/{griddid}/{resno}/v1
Example Response
GetLocationByTransactionId
Get the GPS location of the active reservation by transactionId.GET https://location.grdd.net/api/GGPS.svc/GetLocationByTransactionId/{transactionId}/v1
Example Response
GetLocationByTransactions
Get the GPS location of multiple reservations by an array of transaction IDs.POST https://location.grdd.net/api/GGPS.svc/GetLocationByTransactions/{griddid}
Request Body
Example Response
GetLocationByRes (Batch)
Get the GPS location of multiple reservations by an array of reservation numbers.POST https://location.grdd.net/api/GGPS.svc/GetLocationByRes/{griddid}