Release Notes

We are pleased to announce the availability of version 4.3.3.0 (Lite Edition) of the new HERE SDK for Android.

This is a stable release. We are constantly working on new features, stabilizing APIs, improving our KPIs, and evaluating your feedback.

Changes

This section documents major changes to this release that may require you to update your applications.

Version 4.3.3.0

New Features

  • Added the method search(@NonNull PlaceIdQuery query, @Nullable LanguageCode languageCode, @NonNull PlaceIdSearchCallback callback) to perform an asynchronous request to search for a place based on its ID and language code.
  • Added the possibility to filter AddressQuery results by the CountryCode with the method AddressQuery(@NonNull String query, @NonNull GeoCoordinates areaCenter, @NonNull List<CountryCode> countries).
  • Added the possibility to filter TextQuery results by the CountryCode with the method TextQuery(@NonNull String query, @NonNull GeoCoordinates areaCenter, @NonNull List<CountryCode> countries).
  • Added the ability to get the currently used tile cache size with the method long getTilesCacheSize().

Deprecated

  • Deprecated the method search(@NonNull PlaceIdQuery query, @NonNull PlaceIdSearchCallback callback). Use the newly introduced search(@NonNull PlaceIdQuery query, @Nullable LanguageCode languageCode, @NonNull PlaceIdSearchCallback callback) method instead.

Resolved Issues

  • Fixed: Route scene is not displayed fully for the longest routes. Now, the route scene is displayed fully for the longest routes.
  • Fixed: Missing continent labels at maximum zoom out level. Now, continent labels are rendered at the maximum zoom out level.

Known Issues

  • SearchEngine: Place.getId() is empty for reverse geocoding results.
  • Map labels are not rendered in Chinese.

Changes from Previous Releases

This section documents major changes from past releases. We encourage you to use the latest release, 4.3.3.0.

Version 4.3.2.0

New Features

  • Added updated support for the SDKOptions.cachePath handling. If SDKOptions.cachePath is not set, it will be assigned a default path [to be precise: Context.getCacheDir().getPath()]. Plus, a custom cachePath can be set in the app's manifest file via the "com.here.sdk.cache_path" key.

Resolved Issues

  • Fixed: The Authentication callback was not always called on the main thread. Now the callback is guaranteed to be always called on the main thread.

Known Issues

  • SearchEngine: Place.getId() is empty for reverse geocoding results.
  • Map labels are not rendered in Chinese.

Changes from Previous Releases

This section documents major changes from past releases. We encourage you to use the latest release, 4.3.3.0.

Version 4.3.1.0

Resolved Issues

  • Fixed: AvoidanceOptions will be ignored when calculating truck routes. Now, AvoidanceOptions are considered when calculating truck routes.

Known Issues

  • SearchEngine: Place.getId() is empty for reverse geocoding results.

Version 4.3.0.0

New Features

  • Added the GeoCoordinates(double latitude, double longitude, double altitude) constructor.
  • Added the GeoPolygon(@NonNull GeoCircle geoCircle) constructor.
  • Added the GeoCircle() constructor that accepts type double for the radius parameter.
  • Added the method MapViewLite.pickMapItems(Point2D viewCoordinates, double radius,PickMapItemsCallback callback) to pick map items from the MapView.
  • Added the following to the com.here.sdk.search package:
    • AddressQuery to specify an address query.
    • CategoryQuery to specify a query by categories.
    • Contact that represents the contact information.
    • IdQuery to specify an id query.
    • OpeningHours to represent the information on opening hours.
    • Place to represent a location object, such as a country, a city, a point of interest(POI) etc.
    • PlaceCategory to define a set of most commonly used categories.
    • ScheduleDetails to encapsulate schedule details complying with the iCalendar specification.
    • Suggestion to represent a suggestion of an address or a place based on a query.
    • TextQuery option to specify a text query.
  • Added the following methods to SearchEngine:
    • search(query: IdQuery, callback: IdSearchCallback) to search for a place based on its ID.
    • search(query: CategoryQuery, callback: SearchCallback) to search for places based on a list of categories.
  • Added the structure Details to the Place object. It contains following fields:
    • categories for the list of categories assigned to the place.
    • contacts for the contact list of the place.
    • openingHours for the list of information on the opening hours of the place.
  • Added the following methods to manage tile caching:
    • setMaxTilesCache(long maxSizeInBytes) to set the maximum size available for tiles caching.
    • clearTilesCache() to remove all cached tiles from the persistent memory.
  • Added the constructor SDKOptions(@NonNull String accessKeyId, @NonNull String accessKeySecret, @NonNull String cachePath, @NonNull AuthenticationPreferences authenticationPreferences) to SDKOptions to use the local system time for authentication instead of getting it from the server.

API Changes

  • Changed type of GeoCoordinates.altitude from float to double.
  • Changed the return type of Route.getDurationInSeconds() from long to int.
  • Changed the return type of Route.getTrafficDelayInSeconds() from long to int.
  • Changed the return type of Section.getDurationInSeconds() from long to int.
  • Changed the return type of Section.getTrafficDelayInSeconds() from long to int.
  • Changed the return type of SectionProgress.remainingDurationInSeconds from long to int.
  • Changed the return type of SectionProgress.trafficDelayInSeconds from long to int.
  • Changed the method in the PanListener from void onPan(@NonNull GestureState state, @NonNull Point2D origin, @NonNull Point2D translation, float velocity) to void onPan(@NonNull GestureState state, @NonNull Point2D origin, @NonNull Point2D translation, double velocity).
  • Changed the method in the PinchRotateListener from void onPinchRotate(@NonNull GestureState state, @NonNull Point2D pinchOrigin, @NonNull Point2D rotationOrigin, float twoFingerDistance, @NonNull Angle rotation) to void onPinchRotate(@NonNull GestureState state, @NonNull Point2D pinchOrigin, @NonNull Point2D rotationOrigin, double twoFingerDistance, @NonNull Angle rotation).
  • Changed the method in the TwoFingerPanListener from void onTwoFingerPan(@NonNull GestureState state, @NonNull Point2D origin, @NonNull Point2D translation, float velocity) to void onTwoFingerPan(@NonNull GestureState state, @NonNull Point2D origin, @NonNull Point2D translation, float velocity).
  • Removed the MapMatchedWaypoint class.
  • Removed the RouteRestrictions class.
  • Removed the SideOfStreet enumeration.
  • Removed the Route.getMapMatchedWaypoints() method.
  • Removed the interface Searchable.
  • Replaced Suggestion.getSearchable with Suggestion.getPlace.
  • Removed the method SearchOptions(@Nullable Integer maxItems).
    • Use SearchOptions() instead, as the languageCode and maxItems are set to null with this constructor.
  • Removed the AutosuggestEngine, GeocodingEngine, and ReverseGeocodingEngine. Their functionalities are now integrated into the SearchEngine class:
    • Use SearchEngine.search(TextQuery, SearchOptions, SearchCallback) to search for Place results.
    • Use SearchEngine.search(AddressQuery, SearchOptions, SearchCallback) to geocode an address to a geographic coordinate. Now, geocoding is limited to GeoCoordinates. GeoBox and GeoCircle are dropped.
    • Use SearchEngine.search(GeoCoordinates, SearchOptions, SearchCallback) to reverse geocode a geographic coordinate to an address.
    • Use SearchEngine.search(CategoryQuery, SearchOptions, SearchCallback) to search for Place results based on a list of categories.
    • Use SearchEngine.suggest(TextQuery, SearchOptions, SuggestCallback) to search for auto suggested Place results.
  • Replaced SearchCategory with SearchEngine.search(CategoryQuery, Options, SearchCallback).
  • Replaced the CategoryId class with the PlaceCategory class.
  • Replaced the SearchResult class with the Place class.
  • Replaced the SearchEngine.Callback, GeocodingEngine.Callback, and the ReverseGeocodingEngine.Callback by the SearchCallback class.
  • Replaced the AutosuggestEngine.Callback with the the SuggestCallback class.
  • Removed the following classes and their functionalities:
    • AutosuggestResultType
    • GeocodingResult
  • Removed the AutosuggestResult class. Its functionalities have now been moved to the Suggestion class.
  • Removed the field textformat from the SearchOptions class.
  • Removed the function SearchOptions.getDefaultOptions().
  • Removed the following constructors from the SearchEngine:
    • SearchEngine(SearchOptions defaultOptions).
    • SearchEngine(SDKNativeEngine engine, SearchOptions defaultOptions).
  • Removed the BicycleOptions from the transport mode options for route calculation.
  • OptimizationMode.SHORTEST is no longer supported and now automatically converted to OptimizationMode.FASTEST for the transport mode option TransportMode.PEDESTRIAN.

Deprecated

  • Deprecated the GeoCoordinates(double latitude, double longitude, float altitude) constructor. Use the GeoCoordinates(double latitude, double longitude, double altitude) constructor instead.
  • Deprecated the method MapViewLite.pickMapItems(Point2D viewCoordinates, Float radius,PickMapItemsCallback callback). Use the MapViewLite.pickMapItems(Point2D viewCoordinates, double radius,PickMapItemsCallback callback) instead.
  • Deprecated the GeoCircle() constructor that accepts type float for the radius parameter. Use the GeoCircle() constructor that accepts type double for the radius parameter instead.

Resolved Issues

  • Fixed: Engines will not operate when the time of the device is incorrect. Now, the timestamp of the device is authenticated to enable the engines to operate.

Known Issues

  • SearchEngine: Place.getId() is empty for reverse geocoding results.
  • AvoidanceOptions will be ignored when calculating truck routes.

Changes from Previous Releases

This section documents major changes from past releases. We encourage you to use the latest release, 4.3.3.0.

Version 4.2.2.0

New Features

  • Added a TileServerProvider interface that allows to provide a custom implementation to generate dynamic URLs for a RasterLayer. This can be useful to set different raster layer sources based on the region in the world. Added SimpleTileServerProvider as a convenience implementation that sets a static tile URL provider.

API Changes

  • Changed constructor for RasterLayer to allow setting a TileServerProvider (see above).

Known Issues

  • Engines will not operate when the device's time is wrong. Also, the map will not be able to show any (vector) tiles.

Deprecated

  • The method Camera.getBoundingRect() is deprecated. Use the newly introduced method Camera.getBoundingBox() instead.

Version 4.2.1.0

New Features

  • Added Camera.orbitBy(@NonNull Camera.OrientationUpdate delta, @NonNull Point2D origin) to orbit the camera around a specified point.
  • Added Camera.zoomBy( double factor, @NonNull Point2D origin) to zoom the camera around a specified point relative to the given factor.
  • Added Authentication API to obtain a valid token that can be used to initiate queries to HERE REST APIs.

API Changes

  • Replaced enum type RoadType.STREET with RoadType.RURAL and RoadType.URBAN.

Known Issues

  • Engines will not operate when the device's time is wrong. Also, the map will not be able to show any (vector) tiles.

Version 4.2.0.0

New Features

  • Added the HERE logo watermark placement functionality with the enum WatermarkPlacement and method MapViewLite.setWatermarkPosition(WatermarkPlacement placement, int bottomCenterMargin).

API Changes

  • Removed the BALANCED identifier from the OptimizationMode enum for route calculation.
  • Renamed RouteLeg to Section
  • Renamed Route.getLegs() to Route.getSections().
  • Renamed RouteProgress.routeLegIndex to RouteProgress.sectionIndex.
  • Renamed member geoBox to boundingBox in the following data structures:
    • SearchResult.geoBox to SearchResult.boundingBox.
    • AutosuggestResult.geoBox to AutosuggestResult.boundingBox.
    • GeocodingResult.geoBox to GeocodingResult.boundingBox.
    • OpenSearchEngine.Result.geoBox to OpenSearchEngine.Result.boundingBox.
    • OpenGeocodingEngine.Result.geoBox to OpenGeocodingEngine.Result.boundingBox.
  • Renamed SearchResult.geoCoordinates to SearchResult.coordinates.
  • Changed callbacks to nested types in the following methods:
    • SearchEngine:
      • SearchEngine.search(GeoCoordinates coordinates, String query, SearchOptions options, SearchCallback callback) to SearchEngine.search(GeoCoordinates coordinates, String query, SearchOptions options, SearchEngine.Callback callback).
    • AutosuggestEngine:
      • AutosuggestEngine.suggest(GeoCoordinates coordinates, String query, AutosuggestOptions options, AutosuggestCallback callback) to AutosuggestEngine.suggest(GeoCoordinates coordinates, String query, AutosuggestOptions options, AutosuggestEngine.Callback callback).
    • ReverseGeocodingEngine:
      • ReverseGeocodingEngine.searchAddress(GeoCoordinates coordinates, String query, ReverseGeocodingOptions options, ReverseGeocodingCallback callback) to ReverseGeocodingEngine.searchAddress(GeoCoordinates coordinates, String query, ReverseGeocodingOptions options, ReverseGeocodingEngine.Callback callback).
    • GeocodingEngine:
      • GeocodingEngine.searchLocations(GeoCoordinates coordinates, String query, GeocodingOptions options, GeocodingCallback callback) to GeocodingEngine.searchLocations(GeoCoordinates coordinates, String query, GeocodingOptions options, GeocodingEngine.Callback callback).
    • TrafficEngine:
      • TrafficEngine.queryForIncidents(GeoBox boxArea, IncidentQueryOptions options, QueryForIncidentsCallback callback) to TrafficEngine.queryForIncidents(GeoBox boxArea, IncidentQueryOptions options, TrafficEngine.Callback callback).

Resolved Issues

  • Fixed issue with incorrect pixel width set for rendering a MapPolyline on the map. Now, a MapPolyline can have its stroke width set to physical pixels.

Known Issues

  • Engines will not operate when the device's time is wrong. Also, the map will not be able to show any (vector) tiles.

Version 4.1.6.0

New Features

  • Added the new fields mainLanguageCode and fallbackLanguageCode to specify the desired map language via MapSceneConfig when loading a map scene.
  • Added a Color class that encapsulates common color values.
  • Added Route.getTrafficDelayInSeconds() and RouteLeg.getTrafficDelayInSeconds().

API Changes

  • Custom route options moved to CustomRoutingEngine as nested types:
    • CustomCarOptions moved to CustomRoutingEngine.CarOptions.
    • CustomBicycleOptions moved to CustomRoutingEngine.BicycleOptions.
    • CustomPedestrianOptions moved to CustomRoutingEngine.PedestrianOptions.
    • CustomTruckOptions moved to CustomRoutingEngine.TruckOptions.
    • CustomTruckSpecifications moved to CustomRoutingEngine.TruckSpecifications.
  • MapCircle center latitude is now limited to the range [85S, 85N]. Map circle's radius can't exceed the range [89S, 89N] to prevent crossing a pole, otherwise it is clamped.
  • Changed types for Incident.startTimestamp, Incident.stopTimestamp and Incident.updateTimestamp from Long to Date.
  • Merged com.here.sdk.fleettelematics package into com.here.sdk.routing package.
  • Changed field coordinates to geoCoordinates in SearchResult.
  • Removed trafficMode option from RouteOptions. Traffic delay is now enabled by default.
  • Renamed Route.getShape() to Route.getPolyline().
  • Renamed RouteLeg.getShape() to RouteLeg.getPolyline().
  • Renamed Maneuver.getShape() to Maneuver.getPolyline().
  • Changed type for GeocodingOptions.maxItems from Long to Integer.
  • Changed the maximum possible number of route alternatives for the method RouteOptions.alternatives from 9 to 6.
  • Changed the draw order behavior for MapPolylines, MapCircles and MapPolygons. The draw order is now limited by 1000 to avoid conflicts with regular map data like labels or building footprints. The draw order should be mainly used to adjust the stack order of objects of the same type.
  • Renamed WaypointType.STOP_OVER to WaypointType.STOPOVER.
  • Renamed Route.getTravelTimeInSeconds() to Route.getDurationInSeconds() and changed the returned type from int to long. Same for RouteLeg.
  • Removed Route.getBaseTimeInSeconds() and Route.getTrafficTimeInSeconds(). Same for RouteLeg. Use Route.getTrafficDelayInSeconds() instead.

Resolved Issues

  • Fixed issue with map data not being localized. See the new fields added to MapSceneConfig above to set a LanguageCode.
  • Fixed issue with error handling when loading custom map styles. Now, loading a map returns an invalid scene error if the YAML file passed does not exist and is incorrect.
  • Fixed issue with traffic flow missing at a specific zoom level. Now, traffic flow is displayed at all zoom levels.

Version 4.1.5.0

New Features

  • Added support for AndroidX. Apps can still be developed using API level 21 and support library.
  • Added kinetic panning to the map ('slippy map'). The map will now smoothly animate along the last direction after a user stops panning. It can be disabled together with the pan gesture.
  • PanGestureHandler.onPan() is now called with GestureState.CANCEL for the first touch after GestureState.END to stop any kinetic movement that is still in progress.
  • Added Maneuver.getRoadNumber() and Maneuver.getNextRoadNumber() to get the current road number and the next road number.

API Changes

  • Removed option NOT_IMPLEMENTED_YET from EngineInstantiationErrorCode enum.
  • Renamed EngineInstantiationErrorCode enum to InstantiationErrorCode.
  • Renamed EngineInstantiationException to InstantiationErrorException.
  • Renamed Location.timestampInMilliseconds to Location.timestamp.
  • Changed type Location.timestamp from Long to Date.
  • Removed field MapMatchedWaypoint.mapMatchedRoadName.
  • Changed dependency support library to AndroidX.
  • Route options moved to RoutingEngine as nested types:
    • CarOptions moved to RoutingEngine.CarOptions.
    • BicycleOptions moved to RoutingEngine.BicycleOptions.
    • PedestrianOptions moved to RoutingEngine.PedestrianOptions.
    • TruckOptions moved to RoutingEngine.TruckOptions.
    • TruckSpecifications moved to RoutingEngine.TruckSpecifications.

Known Issues

  • Map data may not be localized based on the device's language.

Version 4.1.4.0

Highlights

  • Added new tutorials to the Developer's Guide that show how to implement smooth Move-To-XY animations and animated map gestures for zoom in/out and kinetic panning.

New Features

  • Added Maneuver.getRoadName() and Maneuver.getNextRoadName() to get the current road name and the next road name.
  • Added the method CameraLimits.getMaxTiltForZoomLevel() for checking the tilt limit at a specific zoom level. The maximum tilt depends on the current zoom level; setting a new zoom level will potentially change the tilt angle.

API Changes

  • Renamed Instruction to Maneuver.
  • Renamed RouteTextOptions.languages to RouteTextOptions.language as it accepts not more than one language.
  • Moved Route.getTransportMode() to RouteLeg.getTransportMode().
  • Moved com.here.sdk.search.Address to com.here.sdk.searchcommon.Address.
  • Moved com.here.sdk.mapviewlite.LoadSceneCallback to com.here.sdk.mapviewlite.MapScene class.
  • Renamed SceneError to ErrorCode and moved to com.here.sdk.mapviewlite.MapScene class.
  • Renamed CameraLimitsErrorCode to ErrorCode and moved to com.here.sdk.mapviewlite.CameraLimits class.
  • Removed the constant CameraLimits.MAX_TILT.

Known Issues

  • Map data may not be localized based on the device's language.

Version 4.1.3.0

This release is mainly focused on stabilization of existing features, bug fixes and overall performance improvements.

Known Issues

  • Map data may not be localized based on the device's language.

Resolved Issues

  • The draw order for raster tile layers now works relatively to other raster tile layers.
  • Fixed visibility issues for flat map markers.
  • Fixed outlines for map circles.

Version 4.1.2.0

New Features

  • The SearchEngine can now be used to search for categories like 'restaurants' by setting a list of CategoryId values.

API Changes

  • Moved all classes from com.here.sdk.mapviewlite.gestures package to com.here.sdk.gestures.
  • Renamed SearchItem to SearchResult.
  • Removed the field SearchResult.href.
  • Renamed the members:
    • AutosuggestResult.boundingRect to AutosuggestResult.geoBox.
    • GeocodingResult.boundingRect to GeocodingResult.geoBox.
    • SearchResult.boundingBox to SearchResult.geoBox.
  • Renamed the members:
    • AutosuggestResult.geoCoordinates to AutosuggestResult.coordinates.
    • GeocodingResult.geoCoordinates to GeocodingResult.coordinates.

Version 4.1.1.0

New Features

  • SearchEngine can now be used to search within a bounding rect for categories by setting a list of CategoryId values.
  • AutosuggestEngine:
    • Added the option to search within a GeoCircle.
    • Added the possibility to request specific types (place, address and/or query) via AutosuggestResultType that can be set for the AutosuggestOptions.
    • Added TaskHandle as a return value when calling AutosuggestEngine.suggest(...) to cancel an ongoing call.

API Changes

  • Changed SearchOptions to AutosuggestOptions when consumed by AutosuggestEngine.
  • Renamed SearchItemCategory to SearchCategory.
  • Changed type SearchCategory from enum to class. SearchCategory now contains the following fields:
    • id (String, required): A unique category identifier. This contains the previous enum values as String.
    • iconLink (String, optional): A web link to the category icon.
    • localizedName (String, required): A localized name describing the category.
  • Removed Instruction.Direction because this information is already available inside Instruction.action.
  • Changed Instruction.Action to ManeuverAction.
  • Renamed the method maneuverInstruction.getAction() to maneuverInstruction.action.
  • Renamed the method maneuverInstruction.getCoordinates() to maneuverInstruction.coordinates.
  • Renamed GeoBoundingRect to GeoBox.

Resolved Issues

  • Fixed: A device orientation change on a MapView may cause a crash on some devices.
  • Fixed: Changing visibility for a MapMarker instance may result in a runtime exception.

Version 4.1.0.0

New Features

  • Added bounding box search for auto suggestions.
  • Added an empty MapStyle that, for example, can be used together with opaque custom raster tile layers.
  • Added the following error values HTTP_ERROR, SERVER_UNREACHABLE and INVALID_PARAMETER to extend error handling for Search, Autosuggest, Geocoding and ReverseGeocoding.

API Changes

  • Renamed PlaceAutosuggestResult to AutosuggestResult.
  • Renamed EngineInstantiationErrorException to EngineInstantiationException.
  • Renamed CameraLimitsErrorException to CameraLimitsException.
  • Unified the error type for SearchEngine, AutosuggestEngine, GeocodingEngine and ReverseGeocodingEngine to be of type SearchError.
  • MapScene.setLayerState is executed immediately now, it no longer takes a callback as an argument, but instead throws an error exception.

Known Issues

  • A device orientation change on a MapView may cause a crash on some devices.
  • Changing visibility for a MapMarker instance may result in a runtime exception.

Resolved Issues

  • Fixed: Map polylines may disappear at certain zoom levels when zooming.
  • Fixed: Parts of the horizontal and vertical lines of a polygon outline may not be drawn perfectly under certain conditions.

Deprecated

  • The methods CameraLimits.setMinBearing(), CameraLimits.setMaxBearing(), CameraLimits.getMinBearing() and CameraLimits.getMaxBearing() are deprecated. Use the newly introduced class AngleRange instead.

results matching ""

    No results matching ""