We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Weather Observation Station 18
Weather Observation Station 18
Sort by
recency
|
2355 Discussions
|
Please Login in order to post a comment
SELECT ROUND(ABS(MIN(LAT_N) - MAX(LAT_N)) + ABS(MIN(LONG_W) - MAX(LONG_W)), 4) AS manhattan_distance FROM STATION;
For MySQL
select round(abs(max(lat_n)-min(lat_n))+abs(max(long_w)-min(long_w)),4) from station manhanttan distance = |x_1 - x_2| + |y_1 - y_2| we known if i have one vector a have coordinate (x,y) examples (1,1) , (3,4) if we want to calculate distance vector (1,1) to (3,4) , we could manhanttan distanstance
actually i did not understand this question plese anyone expalin it
SELECT ROUND( ABS(MIN(LAT_N) - MAX(LAT_N)) + ABS(MIN(LONG_W) - MAX(LONG_W)), 4 ) AS Manhattan_Distance FROM STATION;