MobileForms Toolkit Documentation

GeoCode.GetLocation Method 

Translates the civic address into the GPS location.

public GeoPoint GetLocation(
Address address
);

Parameters

address
A Address object representing the requested location.

Remarks

The GetAddress method starts the asynchronous request and returns after it completes (either with success or failure). It either returns a valid GeoPoint object specifying the resulting GPS location 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 GetLocationAsync 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