AutoGRAPH.NET Service GetTrack (EN)

Материал из TK
Перейти к: навигация, поиск

Возвращает треки по запрошенным ТС за период.

WCF

Определение:

Dictionary<Guid, RTrackInfo[]> GetTrack(string schemaID, Guid[] deviceIDs, DateTime SD, DateTime ED, int tripSplitterIndex)
  • schemaID – schema ID
  • deviceIDs – device list, acquired by EnumDevices – field ID in RGroupItem class
  • SD / ED – start and end of period for request. Server local time.
  • tripSplitterIndex - index of trip splitter or -1 if no trip splitting need

Result:

public class RTrackInfo
{
   public int Index { get; set; }      // track index (started from 0) of each trip
   public DateTime[] DT { get; set; }  // UTC date/time of point
   public double[] Speed { get; set; } // speeds in points
   public double[] Lat { get; set; }   //   length of arrays DT, Speed, Lat and Lng always equal
   public double[] Lng { get; set; }   //
}

JSON

Calling:

http://localhost:8300/GetTrack/Demo/25f86189-adc9-445d-940c-abf860874622/20150413-0000/20150413-2359/0
http://localhost:8300/GetTrack/Demo/25f86189-adc9-445d-940c-abf860874622,d090286c-1fd6-4ef2-ae44-8091d04408d1/20150413-0000/20150413-2359/0

Date/time must be specified in yyyyMMdd or yyyyMMdd-HHmm format Device IDs is comma-separated.

Result: download file

AutoGRAPHNET Service GetTrack.png