MobileForms Toolkit Documentation

GeoCode.GetAddress Method 

Translates the GPS location translation into the civic address.

public Address GetAddress(
GeoPoint location
);

Parameters

location
A GeoPoint object representing the location.

Remarks

The GetAddress method starts the asynchronous request and returns after it completes (either with success or failure). It either returns a valid Address object specifying the resulting civic address or it throws a ServiceRequestException if the request failed.

A call to this method blocks the calling thread until the request completes. Calling this method from the main thread is not recommended. Mind that the request makes a HTTP connection to the location service provider and downloads the result from Internet. Consider using the asynchronous method GetAddressAsync to do this job on a background thread.

Exceptions

Exception TypeCondition
NotSupportedExceptionA service provider specified by ServiceProvider property does not support this kind of service.

See Also

GeoCode Class | Resco.Location.Services.GeoCode Namespace