◆ GetLocationInfo() [2/2]

static int GetLocationInfo ( out SError  Error,
out string  strAddress,
out SRoadInfo  RoadInfo,
Int32  MaxTime 

This overloaded function returns address and road information corresponding to given location.

ErrorAdditional error information returned from Drive.
LocationLocation for which we want to search for address.
strAddressFound address in format: "ISO,city,street,house number"
RoadInfoClass containing information about the road on that position.
MaxTimeMaximum time (in milliseconds) function can take. If MaxTime=0 function execution is not time limited.
1 if successful, other value otherwise.

Parameter strIsoCode is official ISO code of the country. 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. Indian states ISO codes can be found at http://devforum.sygic.com/viewtopic.php?f=15&t=2925&p=3646&hilit=I01&sid=354efb86bb92dc0dcdfcc1bb8d656c20#p3646

See Coordinates conversion section in TROUBLESHOOTING page.

Possible error codes returned from Drive are:

  • 0 - Function not succeeded.
  • 1 - Function succeeded.
  • 2 - Drive not succeeded.
  • 3 - Function reached timeout.
  • -1 - Location info was not found because of invalid location syntax.

References LONGPOSITION.SizeOf(), SError.SizeOf(), SRoadInfo.SizeOf(), and LONGPOSITION.WriteUnmanaged().