Manhattan distance measures how far two points are by adding the absolute differences of their coordinates. For Tokyo property data, it can turn proximity to the Imperial Palace into a machine-learning feature. section 7.1.3
Unlike Euclidean distance, which assumes a straight-line path, Manhattan distance reflects horizontal and vertical movement through a city. It is also called city block distance, taxicab distance, or the L1 norm. section 7.1.3
Choose the distance measure according to the movement or geometry represented by the feature:
- Use Manhattan distance when street layouts and road networks make horizontal and vertical travel more realistic. section 7.1.3
- Use Euclidean distance when direct physical distance between locations is the more appropriate interpretation. section 7.1.3
Tokyo property proximity
A geographical feature compares each Airbnb accommodation with the Imperial Palace by summing absolute latitude and longitude differences, converting the result to meters, and storing it as imperial_palace_distance. The closest displayed listing has a distance of 137.394271 meters. section 7.1.3



