diff --git a/src/lib/geocoding-service.ts b/src/lib/geocoding-service.ts index c9c6bdf..4744f54 100644 --- a/src/lib/geocoding-service.ts +++ b/src/lib/geocoding-service.ts @@ -5,7 +5,7 @@ const NOMINATIM_BASE = 'https://nominatim.openstreetmap.org'; // Cebu metro area bounding box for bounded search const CEBU_VIEWBOX = '123.7,10.1,124.1,10.6'; - +// SAMPLE TO PR // Simple rate-limiter: 1 request per second (Nominatim policy) let lastRequestTime = 0; async function rateLimited(fn: () => Promise): Promise { diff --git a/src/lib/osrm-service.ts b/src/lib/osrm-service.ts index 0b172f4..a84cb27 100644 --- a/src/lib/osrm-service.ts +++ b/src/lib/osrm-service.ts @@ -6,7 +6,7 @@ const OSRM_BASE = 'https://router.project-osrm.org'; // In-memory cache for snapped routes const snappedCache = new Map(); - +// {R{R{R{R}}}} /** * Snap a sequence of waypoints to actual streets using OSRM. * Returns a detailed coordinate array that follows real roads.