Closed rohams closed 10 years ago
Function Name: distanceMatrix(stores) Input: stores[]
example: stores[1].lat=0 stores[1].lng=1 stores[2].lat=5 stores[2].lng=1
output: [[0,5],[5,0]]
in general, output: [[a11, a12],[a21,a22]] where a11 is distance of store 1 form store 1 or zero a12 is distance of store 1 form store 2 a21 is distance of store 2 form store 1 a22 is distance of store 2 form store 2 or zero
Function Name: distanceMatrix(stores) Input: stores[]
output: distace matrix
example: stores[1].lat=0 stores[1].lng=1 stores[2].lat=5 stores[2].lng=1
output: [[0,5],[5,0]]
in general, output: [[a11, a12],[a21,a22]] where a11 is distance of store 1 form store 1 or zero a12 is distance of store 1 form store 2 a21 is distance of store 2 form store 1 a22 is distance of store 2 form store 2 or zero