ID TRACK API

  1. Mengambil Daftar Device

    Methode : GET
    Parameter :
    1. api_key

    Return : JSON

    berikut ini adalah contoh implementasinya

    http://server-gps.com/api/devicelist?api_key=xxxxxxxxxxxxxxxxxxx

    RESULT:

    { "total": 2, "msg": "", "data": [ { "dev_id": 1, "real_name": "PAIJO", "nopol": "B 0001 AE" }, { "dev_id": 2, "real_name": "SUPERMAN", "nopol": "B 0003 EA" }]}
  2. Mengambil Trip

    Methode : GET
    Parameter :
    1. api_key
    2. dev_id
    3. from adalah start date format yyyy-mm-dd hh:mm:ss contoh 2017-05-01 09:45:50
    4. to adalah end date format yyyy-mm-dd hh:mm:ss contoh 2017-05-01 21:09:41

    Return : JSON

    berikut ini adalah contoh implementasinya

    http://server-gps.com/api/triplist?api_key=xxxxxxxxxxxxxxxxxxx&dev_id=1&from=2017-05-01 09:45:50&to=2017-05-01 21:09:41

    RESULT:

    { total: 3, msg: "", data: [ { trip_id: 81774218, gpsTime: "2017-05-01 09:45:50", latitude: -6.2270966, longitude: 106.817444, speed: 38, angle: 326, door: 0, mesin: 1, fuel: 94.75, oil: 0 }, { trip_id: 81774516, gpsTime: "2017-05-01 09:46:01", latitude: -6.225455, longitude: 106.81638, speed: 38, angle: 326, door: 0, mesin: 1, fuel: 94.75, oil: 0 }, { trip_id: 81775387, gpsTime: "2017-05-01 09:47:00", latitude: -6.2168484, longitude: 106.81055, speed: 38, angle: 326, door: 0, mesin: 1, fuel: 27.08, oil: 0 }] }
  3. Mengambil Current Lokasi GeoJSON (all device)

    Methode : GET
    Parameter :
    1. api_key

    Return : JSON

    berikut ini adalah contoh implementasinya

    http://server-gps.com/api/geojson?api_key=xxxxxxxxxxxxxxxxxxx

    RESULT:

    { type: "FeatureCollection", features: [ { id: 1256, type: "Feature", properties: { title: "sales 1", tdate: "2017-04-27 00:12:49", speed: 80, mesin: 1, fuel: 97.20, oil: 0, door: "closed", photo: "", icon: "http://server-gps.com/images/gps/mobil/0-off.png" }, geometry: { type: "Point", coordinates: [ 110.4015959, -7.6140814 ] } } ] }