Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Info.plist
OfflineGeocode.cpp
OfflineGeocode.h
OfflineGeocode.json
OfflineGeocode.pro
OfflineGeocode.qml
OfflineGeocode.qrc
README.md
arcgisruntime.pri
ic_menu_closeclear_light_d.png
ic_menu_collapsedencircled_light_d.png
main.cpp
red_pin.png
screenshot.png

README.md

Offline geocode

This sample demonstrates how to geocode and reverse geocode addresses and locations without network connectivity.

How it works

An ArcGISTiledLayer and LocatorTask are created using local files. Geocoding is performed with inputs from a QtQuick TextField. Reverse geocoding is handled through various mouse events. Information from geocoding tasks is visually displayed through a PictureMarkerSymbol graphic and a Callout. Suggestions are handled through the SuggestListModel's setSearchText function; the TextField's text property is used as input for the function. When the searchText is set, the SuggestListModel will automatically update.

Features

  • Map
  • MapView
  • ArcGISTiledLayer
  • TileCache
  • Callout
  • LocatorTask
  • GeocodeResult
  • GeocodeParameters
  • ReverseGeocodeParameters
  • SuggestListModel
  • GraphicOverlay
  • PictureMarkerSymbol
  • Viewpoint

Offline Data

Read more about how to set up the sample's offline data here.

Link Local Location
SanDiego tpk File <userhome>/ArcGIS/Runtime/Data/tpk/streetmap_SD.tpk
SanDiego loc Files <userhome>/ArcGIS/Runtime/Data/Locators/SanDiegoStreetAddress/SanDiego_StreetAddress.loc
You can’t perform that action at this time.