geolocationhere-apiheremaps-android-sdk

HERE Maps Starter SDK geoLocation of bounds of Visible Map


How can I tell if a GeoLocation position is in the visible area of map? Or how can I get the GeoLocations of the boundaries of the visible portion of the map.I am using the HERE SDK (Starter) for Android.


Solution

  • To get the visible portion of the map, you can try Map.getBoundingBox(), which Returns the current visible map area as a GeoBoundingBox. Then, you can use GeoBoundingBox.contains(GeoCoordinate coord) to determine whether the specified GeoCoordinate is contained within this GeoBoundingBox. Details, please check here.

    Btw, the starter edition has been deprecated. You should consider moving to other editions, like Premium edition.