def make_url(parsed_data, credentials):
    """
    Generates url for foursquare details search.

    :param parsed_data: Parsed google data.
    :param credentials: Foursquare credentials.
    :return: URL.
    """
    url = "https://api.foursquare.com/v2/venues/search?intent=match&ll={},{}&query={}&client_id={}&client_secret={}&v=20170109".format(
        str(parsed_data.lat), str(parsed_data.lng), parsed_data.name, credentials.foursquare_client_id,
        credentials.foursquare_client_secret)
    return url