HERE SDK 4.x Examples

repository·master·Indexed 42 days ago

https://github.com/heremaps/here-sdk-examples

A collection of reference implementations and example applications for the HERE SDK 4.x across Android, iOS, and Flutter. Includes demonstrations for map interaction, routing, POI display, electric vehicle (EV) routing, custom map styles, and camera animations for both Navigate and Explore editions.

Tokens
70.6K
Snippets
146
Records
455
Agent score
52%

What's inside HERE SDK

  1. Overview of EV Routing and Isoline Routing in Kotlin

    master

    The EVRoutingKotlin example demonstrates how to use the HERE SDK (Navigate) for electric vehicle (EV) specific tasks:

    • EV Routing: Calculating routes optimized for electric vehicles.
    • Isoline Routing: Calculating the 'area of reach' for an EV (e.g., how far a vehicle can travel given its current battery level and charging station locations).
    • EV Charging Search: Using the EVSearchEngine to query detailed EV charging location information (EVCP3).

    Important Licensing Note: The EVSearchExample class requires an additional EVCP3 license, which is distinct from the standard Navigation license.

  2. Overview of the TruckGuidance example app

    master

    The TruckGuidance example app demonstrates how to use the HERE SDK to calculate routes specifically tailored for trucks. It showcases advanced navigation features including:

    • Truck-Specific Routing: Calculating routes based on truck specifications and avoiding unsuitable roads.
    • Turn-by-Turn Guidance: Starting simulated guidance with a switchable tracking mode.
    • Restriction Monitoring: Logging route violations and displaying upcoming truck restrictions.
    • Speed Information: UI components for displaying current truck speed limits, car speed limits, and current driving speed.
    • Amenity Search: Searching for truck-specific amenities along a calculated route.
    • Map Interactions: Using Carto POIs to retrieve information on points of interest, traffic incidents, and vehicle restrictions.
    • Advanced SDK Features: Using a global TransportProfile and handling EnvironmentalZoneWarning events.
  3. Overview of the Traffic example app

    master

    The Traffic example app demonstrates how to interact with real-time traffic data using the HERE SDK for Flutter. It specifically covers:

    • Toggling traffic flow visualization on a map.
    • Toggling traffic incidents visualization on a map.
    • Using the TrafficEngine to query real-time traffic data (e.g., querying data along a specific route).

    Key implementation details can be found in the following files:

    • lib/TrafficExample.dart: Demonstrates map visualization toggles.
    • lib/RoutingExample.dart: Demonstrates querying traffic data via the TrafficEngine during routing.
  4. Overview of the truck_guidance_app example

    master

    The truck_guidance_app is a Flutter example demonstrating how to use the HERE SDK for truck-specific routing and navigation. It covers advanced features such as calculating routes based on truck specifications, avoiding unsuitable routes, and handling vehicle restrictions.

    Key capabilities demonstrated include:

    • Truck-Specific Routing: Calculating routes based on truck specs and avoiding unsuitable paths.
    • Navigation: Starting simulated turn-by-turn guidance and switching to tracking mode.
    • UI Components: Rendering current truck/car speed limits, driving speed, and upcoming truck restrictions.
    • POI & Search: Searching for truck amenities along a route and picking Carto POIs for traffic incidents, vehicle restrictions, and general information.
    • SDK Features: Using a global TransportProfile and handling EnvironmentalZoneWarning events.
  5. Overview of map_features_app example

    master

    The map_features_app is a Flutter example application designed to demonstrate advanced map customization using the HERE SDK. It specifically showcases:

    • Map Schemes: Loading and switching between different map visual styles.
    • Specialized Map Features: Enabling overlays such as 3D landmarks.
    • Map Projections: Toggling between Globe and Web Mercator projections.

    Key implementation logic can be found in:

    • lib/MapFeaturesExample.dart
    • lib/MapSchemesExample.dart
  6. Overview of the Routing Hybrid example app

    master

    The Routing example app demonstrates how to calculate and visualize routes between a starting point (A) and a destination (B), including support for multiple intermediate waypoints. It specifically showcases:

    • Route Calculation: Calculating paths with waypoints.
    • Map Visualization: Rendering the calculated route on the map.
    • Offline Routing: Calculating routes in offline mode when network connectivity is unavailable.

    Core logic for these operations can be found in RoutingExample.java.

  7. Overview of HERE SDK 4.x Examples

    master

    This repository provides ready-to-use example applications demonstrating the key features of the HERE SDK across Android, iOS, and Flutter platforms. The examples are organized by license type (Explore and Navigate) and platform.

    Note that the Navigate license is currently available only upon request via a HERE representative.

  8. Overview of the SearchHybrid Flutter example

    master

    The SearchHybrid example app demonstrates how to perform various search operations using the HERE SDK in a Flutter environment. It covers:

    • Place Search & Autosuggestions: Searching for specific points of interest or locations.
    • Geocoding: Converting geographic coordinates into a human-readable address.
    • Reverse Geocoding: Converting a human-readable address into geographic coordinates.

    Note: This specific example uses map storage based on cache only; offline maps are not loaded. For implementations involving offline maps, refer to the offline_maps_app example.

  9. Overview of the Search example app

    master

    The Search example app demonstrates how to implement location-based search features using the HERE SDK. Key capabilities include:

    • Place Search: Searching for specific points of interest or places.
    • Auto Suggestions: Providing real-time suggestions as a user types.
    • Reverse Geocoding: Converting geographic coordinates into a human-readable address.
    • Geocoding: Converting a human-readable address into geographic coordinates.

    Implementation details for these features can be found in SearchExample.swift.

  10. Overview of the Search Kotlin Example

    master

    The Search Kotlin example app demonstrates how to implement location-based search features using the HERE SDK (Navigate) for Android. Key functionalities include:

    • Autosuggestions: Searching for places as the user types.
    • Reverse Geocoding: Finding an address associated with specific geographic coordinates.
    • Geocoding: Finding geographic coordinates associated with a specific address.

    The core implementation logic can be found in SearchExample.kt.