def form_request_url(API_KEY, address, sensor):
    """
    forms a url that can be requested to get json data from geoding api
    output sample: https://maps.googleapis.com/maps/api/geocode/json?key=AIzaSyBWBstysdfsdfhMOsdfsdFkpQGMzsdfsdfHUJRZ8Ps&address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false
    """
    geocoding_url = "https://maps.googleapis.com/maps/api/geocode/"
    output_format = "json?"
    parameters = "key="+API_KEY+"&address="+ "+".join(address.split()) + "&sensor="+ sensor
    
    output_url = geocoding_url+output_format+parameters
    return output_url