Map directions request on webOS
Avishkar Autar · Jun 6 2011 · webOS
Very simple, but not well documented.
First, here’s a typical call to launch the maps app and display a position (latitude, longitude + title) on the map:
this.controller.serviceRequest("palm://com.palm.applicationManager", {
method: "open",
parameters: {
id: "com.palm.app.maps",
params: {
query: escape(latlong) + "(" + encodeURIComponent(title) + ")"
}
}
});
To launch the maps app and bring up the directions panel instead, replace query with daddr:
this.controller.serviceRequest("palm://com.palm.applicationManager", {
method: "open",
parameters: {
id: "com.palm.app.maps",
params: {
daddr: escape(latlong) + "(" + encodeURIComponent(title) + ")"
}
}
});