getClosestContact
Get Contact from Address Book closest to Location within a range.
The Address Book contains information about all your business associates, such as customers, suppliers, and service providers. The information you enter in your Address Book can be used on multiple other screens for dispatches, messages, data trackers, and reports.
getClosestContactRequest
Request to get closest Contact.
Object Fields
NameTypeRequiredDescription
wsAdminTdxAdminYesAdmin Credentials
range int Yes Range in meters. Default 200m.
Contacts outside this range will be ignored
latdoubleYesLatitude of the Location
londoubleYesLongitude of the Location


XML Example:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getClosestContact soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:tns">
   <wsAdmin href="#id0"/>
   <range href="#id1"/>
   <lat href="#id2"/>
   <lon href="#id3"/>
  </ns1:getClosestContact>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:TdxAdmin" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.telenavtrack.net/schema">
   <email xsi:type="xsd:string">1251426539346@telenav.com</email>
   <password xsi:type="xsd:string">password</password>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:double" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">37.373920000000005</multiRef>
  <multiRef id="id3" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:double" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">-121.9993</multiRef>
  <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">100</multiRef>
 </soapenv:Body>
</soapenv:Envelope>
				



getClosestContactResponse
Closest Contact.
Object Fields
NameTypeRequired
getClosestContactReturnTdxContactYes


XML Example:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getClosestContactResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:tns">
   <getClosestContactReturn xsi:type="ns2:TdxContact" xmlns:ns2="http://www.telenavtrack.net/schema">
    <address xsi:type="ns2:TdxAddress">
     <lat xsi:type="xsd:double">37.373905</lat>
     <lon xsi:type="xsd:double">-121.999644</lon>
     <street xsi:type="xsd:string">1130 KIFER RD</street>
     <city xsi:type="xsd:string">SUNNYVALE</city>
     <state xsi:type="xsd:string">CA</state>
     <zipCode xsi:type="xsd:string">94086</zipCode>
     <country xsi:type="xsd:string">US</country>
     <layerId xsi:type="xsd:long" xsi:nil="true"/>
    </address>
    <companyName xsi:type="xsd:string">companyName</companyName>
    <title xsi:type="xsd:string">title</title>
    <firstName xsi:type="xsd:string">firstName</firstName>
    <lastName xsi:type="xsd:string">lastName</lastName>
    <email xsi:type="xsd:string">my@yahoo.com</email>
    <url xsi:type="xsd:string">http://www.telenav.com</url>
    <customerNumber xsi:type="xsd:string">customerNumber</customerNumber>
    <faxNumber xsi:type="xsd:string">12012132</faxNumber>
    <phoneNumber xsi:type="xsd:string">100000000</phoneNumber>
   </getClosestContactReturn>
  </ns1:getClosestContactResponse>
 </soapenv:Body>
</soapenv:Envelope>