Should I Perform Geocoding on the Frontend or Backend in a Django Application? [closed]
I'm developing a web application using Django and need to convert user-provided addresses into geographic coordinates (latitude and longitude) using a geocoding service like the Google Maps Geocoding API. I'm trying to determine the best practice for where to handle this geocoding process:
Frontend: Collect the address from the user, send it directly to the geocoding API from the client's browser, and then send the obtained coordinates to the Django backend for storage and further processing.
Backend: Collect the address from the user via the frontend, send it to the Django backend, perform the geocoding server-side by making a request to the geocoding API, and then store and process the coordinates as needed.
I'm trying to determine the best practice for where to handle this geocoding process