Select to view content in your preferred language

Android - get Addr_type param

500
1
11-06-2017 01:19 AM
CarlosSan
Deactivated User

Hi,

I want to get Addr_type param in geocoding request using LocatorTask class. I'm using Android API

final LocatorTask onlineLocator = new LocatorTask("http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"); final ListenableFuture<List<GeocodeResult>> geocodeFuture = onlineLocator.geocodeAsync("380 New York Street, Redlands, CA");

Is there any way to get it?

Thank you

0 Kudos
1 Reply
ChristaHash
Esri Contributor

Hi Carlos,

You should be able to access Addr_type by using the getAttributes() method on the GeocodeResult.

GeocodeResult| arcgis-android 

This will return a collection of all attributes returned for each result based on the locator used. Since the attributes are returned based on the locator being used, we don't have methods to call individual attributes. Please let me know if you have any additional questions. 

Thanks,

Christa Hash

0 Kudos