The JavaScript API just maps the REST API up in a nice package but there is nothing unique about it. You should be able to call any of the REST API functions with jQuery using $.ajax
. Looking at the API explorer I see that they use query parameters for most things so you will want to use the data attribute for all the params.
$.ajax({
url: "http://image.maps.cit.api.here.com/mapview/1.6/route",
type: "GET",
data: {
app_id: "xxxxx",
app_code: "xxxxx",
r0: "52.5338,13.2966,52.538361,13.325329"
r1: "52.540867,13.262444"
...
},
success: function () {...}
error: function () {...}
});