geocoding fixes

This commit is contained in:
2025-10-16 10:44:49 -06:00
parent 0ce27eacbb
commit 84e2283976
7 changed files with 1049 additions and 77 deletions

View File

@@ -45,6 +45,17 @@ router.post(
representativesController.refreshPostalCode
);
// Geocoding endpoint (proxy to Nominatim)
router.post(
'/geocode',
rateLimiter.general,
[
body('address').notEmpty().withMessage('Address is required')
],
handleValidationErrors,
representativesController.geocodeAddress
);
// Email endpoints
router.post(
'/emails/preview',