Updating API to handle geocoding