When the user has a disabled GPS, the current location cannot be retrieved. For this case, a user will enter the latitude and longitude manually. It need to be saved in the same field (with type location) like as it’s normal captured coordinates by capture-coordinates component.
I’ve tried to do that:
view.ticket.LOCATION = new Location({
"latitude": view.latitude,
"longitude": view.longitude
});
var newLocation = {
"latitude": -16.92593042155752,
"longitude": 10.15002065192829,
"altitude": null, // or some default value
"horizontal_accuracy": null, // or some default value
"vertical_accuracy": null, // or some default value
"timestamp": (new Date()).toISOString() // or null or some default value
};
view.ticket.LOCATION = newLocation;