I am trying to create the navigation application with offline routing .i want to add the bearing value of GPS point so route will be calculated in the direction of the vehicle. i have sample code from android so could anybody have idea how to do it in QML
Map<String,Object> attributes = new HashMap<String,Object>();
attributes.put("CurbApproach", CurbApproach.Right.value); // set right side curb approach
if(item.GPSLocation!=null && item.GPSLocation.hasBearing())
{
attributes.put("Bearing", item.GPSLocation.getBearing());
attributes.put("BearingTol", 30); // bearing tolerance 30
}
StopGraphic stop = new StopGraphic(item.geometry,attributes);
Thanks
Haider