Haven't been able to build Manifest locally yet so not sure this would work but perhaps its as simple as reusing the same conditional logic from FormatMANIFEST
?
84 to 7507 in 260d1a7
FormatGSHEET(d, options) {
d.raw = JSON.parse(JSON.stringify(d));
let sheetoverview = this.GSheetToJson(d.g)[0];
let sheetpoints = this.GSheetToJson(d.r);
let sheetid = options.id;
let sheetsc = {type:'FeatureCollection', mtype: 'gsheet', features: [], properties: { title: sheetoverview.name, description: sheetoverview.description, address: sheetoverview.rootaddress, geocode: sheetoverview.rootgeocode, measure: sheetoverview.measure }, details: options, mapper: {}, raw: d.raw, stops: [], hops: []};
sheetsc.details.layers = []; sheetsc.details.measures = {};
sheetsc.details.url = '#gsheet-'+sheetsc.details.url.split('&id=')[1];
for (let point of sheetpoints) {
let j = sheetsc.features.length;
sheetsc.features[j] = {type: 'Feature'};
sheetsc.features[j].properties = {};
sheetsc.features[j].properties.title = point.name;
sheetsc.features[j].properties.description = point.description;
sheetsc.features[j].properties.placename = point.location;
if (point.destinationindex !== '') {
let hops = point.destinationindex.split(',');
for (let h in hops) { d.hops.push({ from_stop_id:Number(sheetoverview.index), to_stop_id:Number(hops[h]), attributes:ft.properties}); }
}
sheetsc.features[j].properties.category = point.category;
sheetsc.features[j].properties.sources = point.sources;
sheetsc.features[j].properties.notes = point.notes;
sheetsc.features[j].properties.measures = {};
sheetsc.features[j].geometry = {type:'Point', coordinates:[Number(point.geocode.split(',')[1]), Number(point.geocode.split(',')[0])]};
sheetsc.stops.push({ 'local_stop_id':Math.max(1,j), 'id':Math.max(1,j), 'attributes':sheetsc.features[j].properties });
}
return sheetsc;