Fetches the geographical coordinates for a given address using the Nominatim API.
This function takes an address as input, encodes it for use in a URL, and sends a request to the
Nominatim API to retrieve the corresponding geographical coordinates in JSON format.
If the request is successful, it returns the coordinates data. In case of an error, it catches
the error and logs it.
Fetches the geographical coordinates for a given address using the Nominatim API.
This function takes an address as input, encodes it for use in a URL, and sends a request to the Nominatim API to retrieve the corresponding geographical coordinates in JSON format. If the request is successful, it returns the coordinates data. In case of an error, it catches the error and logs it.
getCoordinates