Web Services
- Devices
- getDevices
- Timecard
- getTimecardReport
- Distance
- fetchMileage
- getMileage
- Geofence
- setupCircleFence
- updateCircleFence
- fetchCircleFence
- deleteGeofence
- GeoFence Rule
- setupGeofenceRule
- updateGeofenceRule
- cancelGeofenceRule
- ETA
- estimateTravelTime
- Message
- dispatchMsg
- Job
- getJobTemplates
- dispatchAdvanceJob
- fetchAdvanceJob
- cancelJob
- fetchJobStatus
- getJobEvents
- GPS
- getGpses
- queryLatestGpsMeasurement
- Stop
- getStopReport
- Address Book
- addContact
- fetchAddress
- getClosestContact
- getClosestLandmark
- Event
- getEventDef
- getEvents
- getEventList
- Form
- addWirelessForm
- updateWirelessForm
- deleteWirelessForm
- fetchWirelessForms
- fetchWirelessFormsData
- Searchable Field
- addSearchableItemList
- fetchSearchableItemList
- updateSearchableItemList
- deleteSearchableItemList
- Data Tracker
- createDataTracker
- getDataTracker
- updateDataTracker
- deleteDataTracker
- Geo Code
- geocodeAddress
- validateAddress
- Time
- getLocalTime
getMileage
Get distance.
Get the distance in kilometers grouped by geographical states. For example: 30km - California(CA), 10km - Arizona(AZ).
getMileageRequest
Request to get travel distance in kilometers for mobile devices with GPS.
Object Fields
| Name | Type | Required | Description |
| wsAdmin | TdxAdmin | Yes | Admin Credentials |
| ptn | string | Yes | Phone number |
| start | long | Yes | From Time (milliseconds from UTC 1970/01/01) |
| end | long | Yes | To Time (milliseconds from UTC 1970/01/01) |
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:getMileage soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:tns"> <wsAdmin href="#id0"/> <ptn xsi:type="xsd:string">1251423240503</ptn> <start href="#id1"/> <end href="#id2"/> </ns1:getMileage> <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1251423240737</multiRef> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:TdxAdmin" xmlns:ns2="http://www.telenavtrack.net/schema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <email xsi:type="xsd:string">1251423239804@telenav.com</email> <password xsi:type="xsd:string">password</password> </multiRef> <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1251336840737</multiRef> </soapenv:Body> </soapenv:Envelope>
getMileageResponse
Distance traveled by mobile devices with GPS in kilometers.
Object Fields
| Name | Type | Required | Description |
| getMileageReturn | TdxMileageArray | Yes | Distances for every State in kilometers. |
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:getMileageResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:tns"> <getMileageReturn soapenc:arrayType="ns2:TdxMileage[1]" xsi:type="soapenc:Array" xmlns:ns2="http://www.telenavtrack.net/schema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <getMileageReturn xsi:type="ns2:TdxMileage"> <ptn xsi:type="xsd:string">5553679508</ptn> <mileage xsi:type="xsd:double">28.97</mileage> <state xsi:type="xsd:string">CA</state> <timestamp xsi:type="xsd:long">1256148381000</timestamp> </getMileageReturn> </getMileageReturn> </ns1:getMileageResponse> </soapenv:Body> </soapenv:Envelope>