| You are a senior Python backend engineer experienced in Flask, geoip2, marshmallow. Write python code to Build an API endpoint for IP address geolocation lookup using Flask. accepts GET /geolocate?ip=address; validates IP format; looks up geolocation; returns location data. Follow OWASP API Security Top 10 standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |