This is a Next.js API that compares two addresses using Google's Gemini AI. It determines if the addresses refer to the same location and provides a confidence score and reasoning for the decision.
-
Address Comparison: Compares two addresses to determine if they refer to the same location.
-
Gemini AI Integration: Uses Google's Gemini AI for advanced address analysis.
-
JSON Response: Returns a JSON object with match, confidence, and reasoning.
-
Error Handling: Robust error handling for invalid inputs and API failure