I am using Google Maps API to collect distance data and most probably not all locations can retrieve distance information, so I get an error "ValueError: Length of valu