After I am using the drawing interaction or modify interaction I have a listener that returns the feature that modified or added.
Example
draw.on('drawend', function (event) {
// get the feature
var feature = event.element;
// ...listen for changes on it
logStatus(feature.getId());
});
I know how to get the id, but I need the location (lon lat) of the feature because I need to save it to the DB, how can I do it? I didn't find it in the API.