Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/geocoding-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(fn: () => Promise<T>): Promise<T> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/osrm-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const OSRM_BASE = 'https://router.project-osrm.org';

// In-memory cache for snapped routes
const snappedCache = new Map<string, Coordinate[]>();

// {R{R{R{R}}}}
/**
* Snap a sequence of waypoints to actual streets using OSRM.
* Returns a detailed coordinate array that follows real roads.
Expand Down
Loading