We use the GeoDist database from CEPII for distances between countries around the world.
However, doing proper GeoIP load balancing between states in USA, there's a lot of sites offering this functionality, but it does not seem to be an actual database with that information.
Is there an open dataset that contain information like distance between states? If not, is there a good reason that one needs to API one of these sites that have the data?