Untitled Document
CApplicationAPI.LocationFromAddress Method (SError, LONGPOSITION, String, Boolean, Boolean, Int32)
GPS NAVIGATION SDK
version 8.3 build 47035

The function returns location corresponding to taken address.

public static int LocationFromAddress(
   out SError Error,
   out LONGPOSITION Location,
   string strAddress,
   bool bPostal,
   bool bValueMatch,
   int MaxTime
);

Parameters

Error
Additional error information returned from Drive.
Location
Location corresponding to taken address.
strAddress
Address in "ISO,city/ZIP,street,house number" format. If address is in "ISO,city/ZIP,street,street" format, function will return coordinates of intersection
bPostal
Flag determining whether second address parameter represents city or ZIP code.
true - ZIP code.
false - City.
bValueMatch
Flag determining whether the result will be the exact match or the best value match (true for fuzzy search of address)
MaxTime
Maximum of time (in milliseconds) function can take. If MaxTime=0 function execution is not time limited.

Return Value

1 if successful, other value otherwise.

Remarks

Address parameter house number is optional. If you do not want to fill it write address like this:
"SVK,Bratislava,Einsteinova,"

Second address parameter can represent city name or ZIP code.

See Coordinates conversion section in TROUBLESHOOTING page.
The list of ISO codes can be found at http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html. ISO code of United States of America consists of character "U" plus code of state. E.g New York has ISO code UNY.

Possible error codes returned from Drive are:



See Also

CApplicationAPI Class | ApplicationAPI Namespace | CApplicationAPI.LocationFromAddress Overload List