Skip to content

Commit

Permalink
Merge pull request #352 from heremaps/esd/42030
Browse files Browse the repository at this point in the history
Update example apps for release 4.20.3.0
  • Loading branch information
HERE-SDK-Support-Team authored Oct 28, 2024
2 parents 91f04dd + eb15219 commit 730b717
Show file tree
Hide file tree
Showing 261 changed files with 4,721 additions and 7,292 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ For an overview of the existing features, please check the _Developer Guide_ for

> For now, the _Navigate Edition_ is only available upon request. Please contact your HERE representative to receive access including a set of evaluation credentials.
## List of Available Example Apps (Version 4.20.2.0)
## List of Available Example Apps (Version 4.20.3.0)

- **HelloMap**: Shows the classic 'Hello World'.
- **HelloMapKotlin**: Shows the classic 'Hello World' using Kotlin language (Android only).
Expand Down
2 changes: 1 addition & 1 deletion examples/latest/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This folder contains the HERE SDK examples apps for version: 4.20.2.0
This folder contains the HERE SDK examples apps for version: 4.20.3.0

- HERE SDK for Android ([Lite Edition](lite/android/), [Explore Edition](explore/android/), [Navigate Edition](navigate/android/))
- HERE SDK for iOS ([Lite Edition](lite/ios/), [Explore Edition](explore/ios/), [Navigate Edition](navigate/ios/))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ private void searchAlongARoute(Route route) {
searchOptions.languageCode = LanguageCode.EN_US;
searchOptions.maxItems = 30;

searchEngine.search(textQuery, searchOptions, new SearchCallback() {
searchEngine.searchByText(textQuery, searchOptions, new SearchCallback() {
@Override
public void onSearchCompleted(SearchError searchError, List<Place> items) {
if (searchError != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private void getAddressForCoordinates(GeoCoordinates geoCoordinates) {
reverseGeocodingOptions.languageCode = LanguageCode.EN_GB;
reverseGeocodingOptions.maxItems = 1;

searchEngine.search(geoCoordinates, reverseGeocodingOptions, addressSearchCallback);
searchEngine.searchByCoordinates(geoCoordinates, reverseGeocodingOptions, addressSearchCallback);
}

private final SearchCallback addressSearchCallback = new SearchCallback() {
Expand Down Expand Up @@ -225,7 +225,7 @@ private void searchInViewport(String queryString) {
searchOptions.languageCode = LanguageCode.EN_US;
searchOptions.maxItems = 30;

searchEngine.search(query, searchOptions, querySearchCallback);
searchEngine.searchByText(query, searchOptions, querySearchCallback);
}

private final SearchCallback querySearchCallback = new SearchCallback() {
Expand Down Expand Up @@ -298,19 +298,19 @@ private void autoSuggestExample() {
TextQuery.Area queryArea = new TextQuery.Area(centerGeoCoordinates);

// Simulate a user typing a search term.
searchEngine.suggest(
searchEngine.suggestByText(
new TextQuery("p", // User typed "p".
queryArea),
searchOptions,
autosuggestCallback);

searchEngine.suggest(
searchEngine.suggestByText(
new TextQuery("pi", // User typed "pi".
queryArea),
searchOptions,
autosuggestCallback);

searchEngine.suggest(
searchEngine.suggestByText(
new TextQuery("piz", // User typed "piz".
queryArea),
searchOptions,
Expand All @@ -326,7 +326,7 @@ private void geocodeAddressAtLocation(String queryString, GeoCoordinates geoCoor
options.languageCode = LanguageCode.DE_DE;
options.maxItems = 30;

searchEngine.search(query, options, geocodeAddressSearchCallback);
searchEngine.searchByAddress(query, options, geocodeAddressSearchCallback);
}

private final SearchCallback geocodeAddressSearchCallback = new SearchCallback() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.here.sdk.examples.custom_raster_layers_app"
applicationId "com.here.sdk.examples.custom_polygon_layers_app"
minSdkVersion 24
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.sdk.examples.custom_raster_layers_app">
package="com.here.sdk.examples.custom_polygon_layers_app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.here.sdk.examples.custom_raster_layers_app">
package="com.here.sdk.examples.custom_polygon_layers_app">

<application
android:name="${applicationName}"
android:label="Custom Raster Layers"
android:label="Custom Polygon Layers"
android:icon="@mipmap/ic_launcher">

<activity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.here.sdk.examples.custom_raster_layers_app;
package com.here.sdk.examples.custom_polygon_layers_app;

import io.flutter.embedding.android.FlutterActivity;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.sdk.examples.custom_raster_layers_app">
package="com.here.sdk.examples.custom_polygon_layers_app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Custom Raster Layers</string>
<string>Custom Polygon Layers</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: custom_raster_layers_app
name: custom_polygon_layers_app
description: A new Flutter app that uses the HERE SDK for Flutter.

# The following line prevents the package from being accidentally published to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,23 +222,23 @@ class SearchExample {
TextQueryArea queryArea = TextQueryArea.withCenter(centerGeoCoordinates);

// Simulate a user typing a search term.
_searchEngine.suggest(
_searchEngine.suggestByText(
TextQuery.withArea(
"p", // User typed "p".
queryArea),
searchOptions, (SearchError? searchError, List<Suggestion>? list) async {
_handleSuggestionResults(searchError, list);
});

_searchEngine.suggest(
_searchEngine.suggestByText(
TextQuery.withArea(
"pi", // User typed "pi".
queryArea),
searchOptions, (SearchError? searchError, List<Suggestion>? list) async {
_handleSuggestionResults(searchError, list);
});

_searchEngine.suggest(
_searchEngine.suggestByText(
TextQuery.withArea(
"piz", // User typed "piz".
queryArea),
Expand Down
Loading

0 comments on commit 730b717

Please sign in to comment.