I need to measure the physical distance between two places whose names are provided as strings. Since sometimes the names are written slightly differently, I was looking for
Have a look at the Levenshtein distance. This is a way of measuring how different two strings are from one another.
Hopefully I understood your question correctly; using "distance" in the same sentence as "latitude and longitude" could be confusing!