Skip to content

Commit 4280c7d

Browse files
committed
Merge branch 'main' into sample/find-route
2 parents 54d6211 + 710571e commit 4280c7d

File tree

166 files changed

+4320
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+4320
-8
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ArcGIS Android Issue Template
22

3-
GitHub is **ONLY** used for issues pertaining to ArcGIS Maps SDK Kotlin Samples. Use [Esri Community](https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bd-p/arcgis-runtime-sdk-for-android-questions) for any general ArcGIS Runtime Android SDK questions.
3+
GitHub is **ONLY** used for issues pertaining to ArcGIS Maps SDK Kotlin Samples. Use [Esri Community](https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bd-p/arcgis-runtime-sdk-for-android-questions) for any general ArcGIS Maps SDK questions.
44

55
Is this something you can [contribute](CONTRIBUTING.md)? Send a pull request! New Samples, bug fixes and documentation fixes are welcome.
66

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Built APK's are saved to **arcgis-maps-sdk-kotlin-samples/[module-name]/build/ou
4747

4848
### Run samples through the sample viewer
4949
The samples in this repository can also be viewed in a single sample viewer app. It can be found on the Play Store or [on ArcGIS Online](https://arcgisruntime.maps.arcgis.com/home/item.html?id=21ac248ea189406c821400dc28bf686c). If downloading from ArcGIS Online, follow these instructions to run the app locally on your device:
50-
- Download and unzip the file to get the apk **ArcGIS_Runtime_Sample_Viewer_Android_20000.apk**.
50+
- Download and unzip the file to get the apk **ArcGIS_Maps_SDK_Sample_Viewer_Android_20000.apk**.
5151

5252
## Issues
5353

@@ -69,7 +69,7 @@ Anyone and everyone is welcome to [contribute](.github/CONTRIBUTING.md). We do a
6969
Please see our [guidelines for contributing doc](https://github.com/Esri/contributing/blob/main/README.md)
7070

7171
## Licensing
72-
Copyright 2021 Esri
72+
Copyright 2022 Esri
7373

7474
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
7575

add-feature-layers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Tap the button on the bottom menu to add feature layers, from different sources,
4747

4848
## About the data
4949

50-
This sample uses the [Naperville damage assessment service](https://sampleserver7.arcgisonline.com/server/rest/services/DamageAssessment/FeatureServer/0), [Trees of Portland portal item](https://www.arcgis.com/home/item.html?id=1759fd3e8a324358a0c58d9a687a8578), [Los Angeles Trailheads geodatabase](https://www.arcgis.com/home/item.html?id=2b0f9e17105847809dfeb04e3cad69e0), [Aurora, Colorado GeoPackage](https://www.arcgis.com/home/item.html?id=68ec42517cdd439e81b036210483e8e7), and [Scottish Wildlife Trust Reserves Shapefile](https://www.arcgis.com/home/item.html?id=15a7cbd3af1e47cfa5d2c6b93dc44fc2).
50+
This sample uses the [Naperville damage assessment service](https://sampleserver7.arcgisonline.com/server/rest/services/DamageAssessment/FeatureServer/0), [Trees of Portland portal item](https://www.arcgis.com/home/item.html?id=1759fd3e8a324358a0c58d9a687a8578), [Los Angeles Trailheads geodatabase](https://www.arcgis.com/home/item.html?id=cb1b20748a9f4d128dad8a87244e3e37), [Aurora, Colorado GeoPackage](https://www.arcgis.com/home/item.html?id=68ec42517cdd439e81b036210483e8e7), and [Scottish Wildlife Trust Reserves Shapefile](https://www.arcgis.com/home/item.html?id=15a7cbd3af1e47cfa5d2c6b93dc44fc2).
5151

5252
The Scottish Wildlife Trust shapefile data is provided from Scottish Wildlife Trust under [CC-BY licence](https://creativecommons.org/licenses/by/4.0/). Data Copyright Scottish Wildlife Trust (2022).
5353

add-feature-layers/src/main/java/com/esri/arcgismaps/sample/addfeaturelayers/DownloadActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DownloadActivity : DownloaderActivity() {
1313
getString(R.string.app_name),
1414
listOf(
1515
// ArcGIS Portal item containing the .mmpk mobile map package
16-
"https://www.arcgis.com/home/item.html?id=2b0f9e17105847809dfeb04e3cad69e0",
16+
"https://www.arcgis.com/home/item.html?id=cb1b20748a9f4d128dad8a87244e3e37",
1717
// ArcGIS Portal item containing shapefiles of Scottish Wildlife Trust reserve boundaries
1818
"https://www.arcgis.com/home/item.html?id=15a7cbd3af1e47cfa5d2c6b93dc44fc2",
1919
// GeoPackage AuroraCO.gpkg with datasets that cover Aurora Colorado

add-feature-layers/src/main/java/com/esri/arcgismaps/sample/addfeaturelayers/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class MainActivity : AppCompatActivity() {
141141
geodatabase.load().onSuccess {
142142
// get the feature table with the name
143143
val geodatabaseFeatureTable =
144-
geodatabase.getGeodatabaseFeatureTable("Trailheads")
144+
geodatabase.getFeatureTable("Trailheads")
145145
if (geodatabaseFeatureTable == null) {
146146
showError("Feature table name not found in geodatabase")
147147
return
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Find address with reverse geocode
2+
3+
Use an online service to find the address for a tapped point.
4+
5+
![Image of find address with reverse geocode](find-address-with-reverse-geocode.png)
6+
7+
## Use case
8+
9+
You might use a geocoder to find a customer's delivery address based on the location returned by their device's GPS.
10+
11+
## How to use the sample
12+
13+
Tap the map to see the nearest address displayed as a text view.
14+
15+
## How it works
16+
17+
1. Create a `LocatorTask` object using a URL to a geocoder service.
18+
2. Get the matching results from the `GeocodeResult` using `LocatorTask.reverseGeocode`.
19+
3. Show the results using a `PictureMarkerSymbol` and add the symbol to a `Graphic` in the `GraphicsOverlay`.
20+
21+
## Relevant API
22+
23+
* GeocodeParameters
24+
* GeocodeResult
25+
* LocatorTask
26+
* ReverseGeocodeParameters
27+
28+
## Additional information
29+
30+
This sample uses the World Geocoding Service. For more information, see the [Geocoding service](https://developers.arcgis.com/documentation/mapping-apis-and-services/search/services/geocoding-service/) help topic on the ArcGIS Developer website.
31+
32+
## Tags
33+
34+
address, geocode, locate, reverse geocode, search
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"category": "Search and Query",
3+
"description": "Use an online service to find the address for a tapped point.",
4+
"formal_name": "FindAddressWithReverseGeocode",
5+
"ignore": false,
6+
"images": [
7+
"find-address-with-reverse-geocode.png"
8+
],
9+
"keywords": [
10+
"address",
11+
"geocode",
12+
"locate",
13+
"reverse geocode",
14+
"search",
15+
"GeocodeParameters",
16+
"GeocodeResult",
17+
"LocatorTask",
18+
"ReverseGeocodeParameters"
19+
],
20+
"language": "kotlin",
21+
"redirect_from": "",
22+
"relevant_apis": [
23+
"GeocodeParameters",
24+
"GeocodeResult",
25+
"LocatorTask",
26+
"ReverseGeocodeParameters"
27+
],
28+
"snippets": [
29+
"src/main/java/com/esri/arcgismaps/sample/findaddresswithreversegeocode/MainActivity.kt"
30+
],
31+
"title": "Find address with reverse geocode"
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'org.jetbrains.kotlin.android'
3+
4+
android {
5+
compileSdkVersion rootProject.ext.compileSdkVersion
6+
7+
defaultConfig {
8+
applicationId "com.esri.arcgismaps.sample.findaddresswithreversegeocode"
9+
minSdkVersion rootProject.ext.minSdkVersion
10+
targetSdkVersion rootProject.ext.targetSdkVersion
11+
versionCode rootProject.ext.versionCode
12+
versionName rootProject.ext.versionName
13+
buildConfigField("String", "API_KEY", API_KEY)
14+
}
15+
16+
buildTypes {
17+
release {
18+
minifyEnabled false
19+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
20+
}
21+
}
22+
23+
buildFeatures {
24+
dataBinding true
25+
}
26+
}
27+
28+
dependencies {
29+
// lib dependencies from rootProject build.gradle
30+
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
31+
implementation "com.google.android.material:material:$materialVersion"
32+
}
373 KB
Loading

0 commit comments

Comments
 (0)