Skip to content

Instantly share code, notes, and snippets.

@gorbin
Created October 4, 2018 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gorbin/2d3ad4800a3ebeb8a03c99e19b5e70bd to your computer and use it in GitHub Desktop.
Save gorbin/2d3ad4800a3ebeb8a03c99e19b5e70bd to your computer and use it in GitHub Desktop.
rubike1
--> POST https://rubike.online/api/v1/trips/2d117b37242814585c44564fce3e7d14/path/174
Content-Type: application/json; charset=UTF-8
Content-Length: 43
{"geo_lat":54.8511119,"geo_lng":83.1007044}
--> END POST (43-byte body)
<-- 200 OK https://rubike.online/api/v1/trips/2d117b37242814585c44564fce3e7d14/path/174 (364ms)
Server: nginx/1.14.0
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Cache-Control: no-cache, private
Date: Thu, 04 Oct 2018 04:50:21 GMT
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 589
Strict-Transport-Security: max-age=15768000
{"result":{"status":true,"error":{"code":null,"description":""}},"data":{"trip":{"id":174,"created_at":"2018-10-04 04:46:57","updated_at":"2018-10-04 04:47:20","userhash":"2d117b37242814585c44564fce3e7d14","id_deposit":218,"id_lock":1,"id_bike":17,
"distance":2827.46,"cost":0,"travel_time":0,"kcals":0,"timestart":"1538628416","timestop":null,"status":"active",
"path":[{"id":1716,"created_at":"2018-10-04 04:47:20","updated_at":"2018-10-04 04:47:20","id_trip":174,"geo_lat":54.8511119,"geo_lng":83.1007044,"cDistance":1,"timestamp":"1538628440"},{"id":1715,"created_at":"2018-10-04 04:47:10","updated_at":"2018-10-04 04:47:10","id_trip":174,"geo_lat":54.8511635,"geo_lng":83.1007242,"cDistance":1,"timestamp":"1538628430"},{"id":1714,"created_at":"2018-10-04 04:46:59","updated_at":"2018-10-04 04:46:59","id_trip":174,"geo_lat":54.8511391,"geo_lng":83.1007085,"cDistance":1,"timestamp":"1538628419"},{"id":1713,"created_at":"2018-10-04 04:46:58","updated_at":"2018-10-04 04:46:58","id_trip":174,"geo_lat":54.851134,"geo_lng":83.1006854,"cDistance":1,"timestamp":"1538628418"},{"id":1712,"created_at":"2018-10-04 04:46:57","updated_at":"2018-10-04 04:46:58","id_trip":174,"geo_lat":55.750077,"geo_lng":37.65299,"cDistance":1,"timestamp":"1538628417"}]}}}
<-- END HTTP (1253-byte body)
I: New location: Location[fused 54,851112,83,100704 hAcc=32 et=+7d21h21m35s154ms alt=127.69999694824219 vAcc=4 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=52]}]
W: [AclManager]No 2 for (accnt=account#942490422#, com.google.android.gms(10013):UserLocationProducer, vrsn=13280000, 0, 3pPkg = null , 3pMdlId = null , pid = 9842). Was: 2 for 1, account#942490422#
--> POST https://rubike.online/api/v1/trips/2d117b37242814585c44564fce3e7d14/path/174
Content-Type: application/json; charset=UTF-8
Content-Length: 43
{"geo_lat":54.8511119,"geo_lng":83.1007044}
--> END POST (43-byte body)
<-- 200 OK https://rubike.online/api/v1/trips/2d117b37242814585c44564fce3e7d14/path/174 (102ms)
Server: nginx/1.14.0
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Cache-Control: no-cache, private
Date: Thu, 04 Oct 2018 04:50:25 GMT
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 587
Strict-Transport-Security: max-age=15768000
{"result":{"status":true,"error":{"code":null,"description":""}},"data":{"trip":{"id":174,"created_at":"2018-10-04 04:46:57","updated_at":"2018-10-04 04:50:23","userhash":"2d117b37242814585c44564fce3e7d14","id_deposit":218,"id_lock":1,"id_bike":17,"distance":2827.46,"cost":4.5,"travel_time":3,"kcals":27,"timestart":"1538628416","timestop":"1538628623",
"status":"ended","path":[{"id":1716,"created_at":"2018-10-04 04:47:20","updated_at":"2018-10-04 04:47:20",
"id_trip":174,"geo_lat":54.8511119,"geo_lng":83.1007044,"cDistance":1,"timestamp":"1538628440"},{"id":1715,"created_at":"2018-10-04 04:47:10","updated_at":"2018-10-04 04:47:10","id_trip":174,"geo_lat":54.8511635,"geo_lng":83.1007242,"cDistance":1,"timestamp":"1538628430"},{"id":1714,"created_at":"2018-10-04 04:46:59","updated_at":"2018-10-04 04:46:59","id_trip":174,"geo_lat":54.8511391,"geo_lng":83.1007085,"cDistance":1,"timestamp":"1538628419"},{"id":1713,"created_at":"2018-10-04 04:46:58","updated_at":"2018-10-04 04:46:58","id_trip":174,"geo_lat":54.851134,"geo_lng":83.1006854,"cDistance":1,"timestamp":"1538628418"},{"id":1712,"created_at":"2018-10-04 04:46:57","updated_at":"2018-10-04 04:46:58","id_trip":174,"geo_lat":55.750077,"geo_lng":37.65299,"cDistance":1,"timestamp":"1538628417"}]}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment