6b1a1ea ←6fcd812antonApr 18, 2026 api

edit generate-map.js via macOS

M /anton/undefined +5 -0
316 unmodified lines
317 properties: { layer: 'stop', name: globalStopNames[i] },
318 geometry: { type: 'Point', coordinates: globalStops[globalStopNames[i]] },
319 })
320 }
321 await files.write('flights.geojson', JSON.stringify({ type: 'FeatureCollection', features: globalFeatures }, null, 2))
321 try {
322 await files.write('flights.geojson', JSON.stringify({ type: 'FeatureCollection', features: globalFeatures }, null, 2))
323 } catch (e) {
324 errors.push('flights.geojson: ' + e.message)
325 }
326
327 return new Response(JSON.stringify({
328 ok: true,
329 trips: tripNames.length,
330 segments: allSegments.length,
331 stops: globalStopNames.length,
332 flights: allSegments.filter(isFlightMode).length,
333 errors: errors,
334 }))
335}