After spending some more time, I've managed to set up the object editor to map the child properties.
In the editor extension code, I traverse the schema properties to add them to the form object, and then I can map them in the angular html template.
Here's the js code with the additions:
var location = function(name, schema, options) {
if (schema.type === 'object' && schema.format === 'location') {
var f = schemaFormProvider.stdFormObj(name, schema, options);
f.key = options.path;
f.type = 'location';
options.lookup[sfPathProvider.stringify(options.path)] = f;
// ADDED THIS BIT:
// map the schema properties to form properties
f.properties = {};
angular.forEach(schema.properties, function(v, k) {
var path = options.path.slice();
path.push(k);
if (options.ignore[sfPathProvider.stringify(path)] !== true) {
var required = schema.required && schema.required.indexOf(k) !== -1;
var def = schemaFormProvider.defaultFormDefinition(k, v, {
path: path,
required: required || false,
lookup: options.lookup,
ignore: options.ignore
});
if (def) {
f.properties[k] = def;
}
}
});
return f;
}
};
schemaFormProvider.defaults.object.unshift(location);
and the HTML template (with the inputs type='number' rather than 'text') now looks like this:
<div class="form-group" ng-class="{'has-error': hasError()}">
<label class="control-label" ng-show="showTitle()">{{form.title}}</label>
<input ng-show="form.properties.latitude.key"
style="background-color: white"
type="number"
class="form-control"
schema-validate="form.properties.latitude"
ng-model="$$value$$.latitude" />
<input ng-show="form.properties.longitude.key"
style="background-color: white"
type="number"
class="form-control"
schema-validate="form.properties.longitude"
ng-model="$$value$$.longitude" />
<span class="help-block">{{ (hasError() && errorMessage(schemaError())) || form.description}}</span>
</div>
I don't know if this is the correct way to do it but it works for my purposes.