GeoNearest
GeoNearest[enttype, loc] returns the geographic entity of type enttype closest to the geo location loc.
GeoNearest[{reg1, reg2, …, regn}, loc]returns the nearest of theregi.GeoNearest[{reg1 -> val1, reg2 -> val2, …, regn -> valn}, loc]returns thevalicorresponding to the nearestregi.GeoNearest[{reg1, reg2, …, regn} -> {val1, val2, …, valn}, loc]returns the same result.GeoNearest[{reg1, reg2, …, regn} -> Automatic, loc]takes thevalito be successive integersi.GeoNearest[spec, loc, n]returnsnnearest values.GeoNearest[spec, loc, {n, r}]returns up tonmatches within a radiusrofloc.
Examples
GeoNearest["City", Here]GeoNearest["Airport", Entity["City", {"NewYork", "NewYork", "UnitedStates"}], 5]Please visit the official Wolfram Language Reference for more details.