In order to use the Correction API, you must request an access token. This is done by making an OAuth request using your MapQuest key and secret.
https://www.mapquestapi.com/oauth/token
Parameter | Description |
---|---|
client_id | The application "Consumer Key". |
client_secret | The application "Consumer Secret". |
Response Field | Description |
---|---|
clientId | The id of the client making the request. The same as the value provided in the request form. |
accessToken | The token to use when interacting with the correction api. |
expiresIn | The time this token will expire in seconds. |
issuedAt | The timestamp this token was issued. |
tokenType | Typically "BearerToken". |
bullseyeUrl | The url that will accept the provided access_token. |
bullseyeClientIp | The ip of the client requesting access. |
The tokens obtained from the OAuth endpoint is set to expire after a certain period. When this happens, you must obtain a new token by rerunning the above steps.
http://caas.hyperlocation.io:2101/MOUNTPOINT_NAME
Parameter | Description |
---|---|
mountpoint_name | The customer specific "Mountpoint Name". |
Header Parameter | Description | Required? |
---|---|---|
Authorization |
Example
Authorization: Bearer ACCESS_TOKEN |
Yes |
Ntrip-GGA | An Ntrip string representing the observed location from a device.
Example
See also |
Yes |
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: gnss/data
curl -v -H "Content-Type:application/x-www-form-urlencoded" \
https://www.mapquestapi.com/oauth/token \
-d "client_id=CLIENT_ID&client_secret=CLIENT_SECRET"
HTTP/1.1 200 OK
Content-Type: application/json
{
"clientId": "CLIENT_ID",
"accessToken": "ACCESS_TOKEN",
"expiresIn": "7199",
"issuedAt": "1506527634471",
"tokenType": "BearerToken",
"bullseyeUrl": "http://caas.hyperlocation.io:2101",
"bullseyeClientIp": "CLIENT_IP"
}
curl -X GET \
--header "Authorization: Bearer ACCESS_TOKEN" \
--header "Ntrip-GGA: \
$GPGGA,163601.70,3316.1098032,N,09709.6827232,W,1,00,1.0,207.656,M,-27.689,M,0.0,*73" \
http://caas.hyperlocation.io:2101/MOUNTPOINT_NAME
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: gnss/data
<binary data stream>