Home > @magiclane/maps-sdk > GemView > getNearestLocations
GemView.getNearestLocations() method
Retrieve the set of landmarks on the specified coordinates.
This is a quick synchronous reverse geocoding method.
Signature:
getNearestLocations(coords: Coordinates): Landmark[];Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
coords |
Reference Coordinates for this operation. |
Returns:
Landmark[]
A Landmark list containing the nearest locations to the specified coordinates. If no landmarks are found, the list will be empty.
Exceptions
An exception if it fails.