Compute Central Location with Different Distance Functions
CentralFeature is a location measure that gives a point in the data with the minimum total distance to every other point in the data. The distance measure depends on the type of data, and some types admit various distance functions.
Consider the 10 largest cities in Florida and find a central location.
Compute the central feature based on GeoDistance.
Now find the central city based on the distance needed to travel.
Visualize both central features with the corresponding travel paths used with TravelDistance.
Use WeightedData to weigh each city according to its population.
Find the central city based on population size and GeoDistance.
Find the central city based on population size and TravelDistance.
Visualize the locations on a map.