c9a2f8622fbac9cfab4aa8dd54532cfeeb6f16dd
Complements the existing forward geocoder with Nominatim's /reverse endpoint so the admin edit form can populate the address from coordinates (useful when a crawl gave us lat/lng but no street, e.g. after running crawl-enrich). Backend: - geocode.Reverse(ctx, lat, lng) hits Nominatim /reverse with addressdetails=1 and accept-language=de, reuses the 1 rps mutex already guarding forward calls. Falls through city → town → village → municipality → hamlet for small places. Returns nil when Nominatim has no match so callers can distinguish "no hit" from "all-empty address." - New DTOs ReverseGeocodeRequest/Response. - GeocodeHandler.ReverseGeocode wired at POST /reverse-geocode behind the same geocodeLimit middleware as /geocode. Frontend: - /api/reverse-geocode SvelteKit proxy mirrors /api/geocode. - MarketForm gets a second button next to "Koordinaten aus Adresse ermitteln" — "Adresse aus Koordinaten ermitteln". Writes non-empty street/city/zip back into the form; empty result surfaces "Keine Adresse gefunden."
Description
No description provided
Languages
Go
60.3%
Svelte
20.3%
Dart
11.1%
TypeScript
5%
PLpgSQL
1.1%
Other
2.1%