# Gets indices of reaches that are closest to given locations

### Description

Gets indices of reaches that are closest to given locations

### Usage

1 | ```
getreachind(net,x,y,...)
``` |

### Arguments

`net` |
Object of class "rivernet" e.g. read by the function |

`x` |
Numerical vector of x coordinates of sites to be analyzed (needs to be of the same length as argument |

`y` |
Numerical vector of y coordinates of sites to be analyzed (needs to be of the same length as argument |

`...` |
. |

### Value

A data frame with the indices in the first and the distances in the second column.

### See Also

`rivernet.read`

, `upstreamconnectivity.rivernet`

, `adjacentreaches.rivernet`

,

`utility`

.