• Parameters

    • props: {
          latitude: number;
          longitude: number;
      }

      Object containing the latitude and longitude of the user

      • latitude: number

        The latitude of the user

      • longitude: number

        The longitude of the user

    Returns Promise<string>

    A Promise containing the city of the user

    Function

    getCity gets the city of user from lat long

    Description

    Try with gouv API that successes most of the time if user is in france, if not try with geoapify