Control object for the navigation service
Commands sent to the /pps/qnxcar/navigation/control object are of the form:
msg::command_string\nid::ID_number\ndat:json:{JSON_data}
Responses always reflect the command_string and ID_number that were sent in the message, along with any errors:
res::command_string\nid::ID_number\ndat:json:{JSON_data}\nerr::errno_number\nerrstr::error_description
msg:: | id:: | dat:json: |
---|---|---|
getPOIs | Number |
|
cancelNavigation | Number | Stop the current navigation session. |
navigateTo | Number | location (contains several fields—see table below). |
panMap | Number |
|
search | Number |
|
zoomMap | Number | scale (in meters/pixel) |
id | name | parentId | type |
---|---|---|---|
1 | Accommodations + Amenities | 0 | accommodation |
2 | Attractions | 0 | attraction |
3 | Public Places + Services | 0 | public |
4 | Restaurants + Entertainment | 0 | restaurant |
5 | Transportation | 0 | transportation |
6 | Hotel or Motel | 1 | accommodation |
7 | Airport | 5 | transportation |
8 | Golf Course | 4 | sports |
9 | Ferry | 5 | transportation |
10 | Restaurant | 4 | restaurant |
11 | Nightlife | 4 | restaurant |
12 | Casino | 4 | restaurant |
13 | Movie Theatre | 4 | restaurant |
14 | Community Centre | 3 | public |
15 | City Hall | 3 | public |
16 | Sports Centre | 3 | sports |
17 | Amusement Park | 2 | attraction |
18 | Museum | 2 | museum |
19 | Historical Monument | 2 | attraction |
20 | Tourist Office | 2 | attraction |
21 | Parking Garage | 5 | parking |
22 | Park & Ride | 5 | parking |
23 | Automobile Dealer | 5 | transportation |
24 | Rest Area | 5 | park |
25 | Hospital | 1 | hospital |
26 | School | 1 | accommodation |
27 | Police Station | 3 | public |
28 | Place of Worship | 1 | church |
Field | Description |
---|---|
city | The destination's city. |
country | The city's country. |
distance | Distance from current location to destination. |
id | Destination identifier. |
latitude | The destination's latitude. |
longitude | The destination's longitude. |
name | The destination's name (e.g., Toronto City Hall). |
number | Street address. |
postalCode | The postal code's first three characters, which indicate the Forward Sortation Area (FSA). |
province | The destination's province. |
street | Name of the destination's street. |
type | Point-of-interest (POI) type:
|
xindex | This attribute is a byproduct of using the Sencha framework and is ignored when present. |