From 50d336ba2576b5a1464f36ee8896f17f37935aa0 Mon Sep 17 00:00:00 2001 From: Josh Perez Date: Sat, 21 Mar 2026 13:54:06 +0800 Subject: [PATCH] JM001: Initial Commit --- src/lib/geocoding-service.ts | 2 +- src/lib/osrm-service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.