prometapi icon indicating copy to clipboard operation
prometapi copied to clipboard

Bicikelj timestamps are all over the place

Open izacus opened this issue 10 years ago • 0 comments

There are two large issues with latest timestamp updates:

  1. Timestamp information is randomly missing from the response. E.g. two examples one after another:

    12-17 10:34:04.100    3505-3555/si.virag.bicikelj D/Bicikelj﹕ Response: {"updated": 1418808785.0, "markers": {"24": {"name": "ZALO\u0160KA C.-GRABLOVI\u010cEVA C.", "bonus": "0", "fullAddress": "Zalo\u0161ka cesta 16  ", "number": "24", "station": {"available": "2", "free": "14", "ticket": "0", "total": "16"}, "address": "Zalo\u0161ka cesta 16", "lat": "46.05441", "lng": "14.52978", "open": "1", "station_valid": true}, "25": {"name": "TR\u017dNICA MOSTE", "bonus": "0", "fullAddress": "Zalo\u0161ka cesta 54  ", "number": "25", "station": {"available": "1", "free": "20", "ticket": "0", "total": "21"}, "address": "Zalo\u0161ka cesta 54", "lat": "46.055801", "lng": "14.534156", "open": "1", "station_valid": true}, "26": {"name": "RO\u017dNA DOLINA-\u0160KRAB\u010cEVA UL.", "bonus": "0", "fullAddress": "\u0160krab\u010deva ulica 2  ", "number": "26", "station": {"available": "5", "free": "13", "ticket": "0", "total": "18"}, "address": "\u0160krab\u010deva ulica 2", "lat": "46.051439", "lng": "14.49273", "open": "1", "station_valid": true}, "27": {"name": "DUNAJSKA C.-PS PETROL", "bonus": "0", "fullAddress": "Dunajska cesta 50  ", "number": "27", "station": {"available": "2", "free": "18", "ticket": "0", "total": "20"}, "address": "Dunajska cesta 50", "lat": "46.065136", "lng": "14.509112", "open": "1", "station_valid": true}, "20": {"name": "STARA CERKEV", "bonus": "0", "fullAddress": "Celov\u0161ka cesta 69  ", "number": "20", "station": {"available": "0", "free": "14", "ticket": "0", "total": "14"}, "address": "Celov\u0161ka cesta 69", "lat": "46.06342", "lng": "14.494588", "open": "1", "station_valid": true}, "21": {"name": "KINO \u0160I\u0160KA", "bonus": "0", "fullAddress": "Celov\u0161ka cesta 111c  ", "number": "21", "station": {"available": "3", "free": "23", "ticket": "0", "total": "26"}, "address": "Celov\u0161ka cesta 111c", "lat": "46.06928", "lng": "14.48971", "open": "1", "station_valid": true}, "22": {"name": "\u0160PICA", "bonus": "0", "fullAddress": "Prule 8  ", "number": "22", "station": {"available": "4", "free": "14", "ticket": "0", "total": "18"}, "address": "Prule 8", "lat": "46.040213", "lng": "14.512044", "open": "1", "station_valid": true}, "23": {"name": "BARJANSKA C.-CENTER STAREJ\u0160IH TRNOVO", "bonus": "0", "fullAddress": "Devinska ulica 1a  ", "number": "23", "station": {"available": "4", "free": "16", "ticket": "0", "total": "20"}, "address": "Devinska ulica 1a", "lat": "46.04081", "lng": "14.49951", "open": "1", "station_valid": true}, "28": {"name": "PLE\u010cNIKOV STADION", "bonus": "0", "fullAddress": "Dunajska cesta 70  ", "number": "28", "station": {"available": "0", "free": "18", "ticket": "0", "total": "18"}, "address": "Dunajska cesta 70", "lat": "46.06942", "lng": "14.51052", "open": "1", "station_valid": true}, "29": {"name": "DUNAJSKA C.-PS MERCATOR", "bonus": "0", "fullAddress": "Dunajska cesta 105  ", "number": "29", "station": {"available": "0", "free": "18", "ticket": "0", "total": "18"}, "address": "Dunajska cesta 105", "lat": "46.074193", "lng": "14.511134", "open": "1", "station_valid": true}, "1": {"name": "PRE\u0160ERNOV TRG-PETKOV\u0160KOVO NABRE\u017dJE", "bonus": "0", "fullAddress": "Pre\u0161ernov trg 6  ", "number": "1", "station": {"available": "4", "free": "16", "ticket": "0", "total": "20"}, "address": "Pre\u0161ernov trg 6", "lat": "46.051367", "lng": "14.506542", "open": "1", "station_valid": true}, "3": {"name": "KONGRESNI TRG-\u0160UBI\u010cEVA ULICA", "bonus": "0", "fullAddress": "Kongresni trg 3  ", "number": "3", "station": {"available": "6", "free": "14", "ticket": "0", "total": "20"}, "address": "Kongresni trg 3", "lat": "46.050388", "lng": "14.504623", "open": "1", "station_valid": true}, "2": {"name": "POGA\u010cARJEV TRG-TR\u017dNICA", "bonus": "0", "fullAddress": "Poga\u010darjev trg 3  ", "number": "2", "station": {"available": "2", "free": "16", "ticket": "0", "total": "18"}, "address": "Poga\u010darjev trg 3", "lat": "46.051093", "lng": "14.507186", "open": "1", "station_valid": true}, "5": {"name": "BREG", "bonus": "0", "fullAddress": "Breg 20  ", "number": "5", "station": {"ava
    
    12-17 10:34:06.662    3505-3810/si.virag.bicikelj D/Bicikelj﹕ Response: {"updated": 1418805181, "markers": {"1": {"updated": 1418805182, "bonus": "0", "timestamp": "2014-12-17T09:33:02.049Z", "fullAddress": "PRE\u0160ERNOV TRG-PETKOV\u0160KOVO NABRE\u017dJE", "number": 1, "address": "PRE\u0160ERNOV TRG-PETKOV\u0160KOVO NABRE\u017dJE", "lat": "46.051367", "lng": "14.506542", "open": "1", "name": "PRE\u0160ERNOV TRG-PETKOV\u0160KOVO NABRE\u017dJE", "station_valid": true, "station": {"available": "5", "ticket": "0", "total": "20", "free": "15"}}, "2": {"updated": 1418805181, "bonus": "0", "timestamp": "2014-12-17T09:33:01.639Z", "fullAddress": "POGA\u010cARJEV TRG-TR\u017dNICA", "number": 2, "address": "POGA\u010cARJEV TRG-TR\u017dNICA", "lat": "46.051093", "lng": "14.507186", "open": "1", "name": "POGA\u010cARJEV TRG-TR\u017dNICA", "station_valid": true, "station": {"available": "2", "ticket": "0", "total": "18", "free": "16"}}, "3": {"updated": 1418805181, "bonus": "0", "timestamp": "2014-12-17T09:33:01.928Z", "fullAddress": "KONGRESNI TRG-\u0160UBI\u010cEVA ULICA", "number": 3, "address": "KONGRESNI TRG-\u0160UBI\u010cEVA ULICA", "lat": "46.050388", "lng": "14.504623", "open": "1", "name": "KONGRESNI TRG-\u0160UBI\u010cEVA ULICA", "station_valid": true, "station": {"available": "6", "ticket": "0", "total": "20", "free": "14"}}, "4": {"updated": 1418805181, "bonus": "0", "timestamp": "2014-12-17T09:33:01.673Z", "fullAddress": "CANKARJEVA UL.-NAMA", "number": 4, "address": "CANKARJEVA UL.-NAMA", "lat": "46.052431", "lng": "14.503257", "open": "1", "name": "CANKARJEVA UL.-NAMA", "station_valid": true, "station": {"available": "4", "ticket": "0", "total": "23", "free": "19"}}, "5": {"updated": 1418805182, "bonus": "0", "timestamp": "2014-12-17T09:33:02.131Z", "fullAddress": "BREG", "number": 5, "address": "BREG", "lat": "46.046498", "lng": "14.505148", "open": "1", "name": "BREG", "station_valid": true, "station": {"available": "4", "ticket": "0", "total": "20", "free": "16"}}, "6": {"updated": 1418805181, "bonus": "0", "timestamp": "2014-12-17T09:33:01.704Z", "fullAddress": "GRUDNOVO NABRE\u017dJE-KARLOV\u0160KA C.", "number": 6, "address": "GRUDNOVO NABRE\u017dJE-KARLOV\u0160KA C.", "lat": "46.045748", "lng": "14.506196", "open": "1", "name": "GRUDNOVO NABRE\u017dJE-KARLOV\u0160KA C.", "station_valid": true, "station": {"available": "2", "ticket": "0", "total": "18", "free": "16"}}, "7": {"updated": 1418805182, "bonus": "0", "timestamp": "2014-12-17T09:33:02.15Z", "fullAddress": "MIKLO\u0160I\u010cEV PARK", "number": 7, "address": "MIKLO\u0160I\u010cEV PARK", "lat": "46.054168", "lng": "14.507060", "open": "1", "name": "MIKLO\u0160I\u010cEV PARK", "station_valid": true, "station": {"available": "2", "ticket": "0", "total": "18", "free": "16"}}, "8": {"updated": 1418805181, "bonus": "0", "timestamp": "2014-12-17T09:33:01.788Z", "fullAddress": "BAVARSKI DVOR", "number": 8, "address": "BAVARSKI DVOR", "lat": "46.056820", "lng": "14.505510", "open": "1", "name": "BAVARSKI DVOR", "station_valid": true, "station": {"available": "16", "ticket": "0", "total": "22", "free": "6"}}, "9": {"updated": 1418805182, "bonus": "0", "timestamp": "2014-12-17T09:33:02.022Z", "fullAddress": "TRG OF-KOLODVORSKA UL.", "number": 9, "address": "TRG OF-KOLODVORSKA UL.", "lat": "46.057421", "lng": "14.510265", "open": "1", "name": "TRG OF-KOLODVORSKA UL.", "station_valid": true, "station": {"available": "3", "ticket": "0", "total": "26", "free": "23"}}, "10": {"updated": 1418805181, "bonus": "0", "timestamp": "2014-12-17T09:33:01.499Z", "fullAddress": "MASARYKOVA DDC", "number": 10, "address": "MASARYKOVA DDC", "lat": "46.057630", "lng": "14.514264", "open": "1", "name": "MASARYKOVA DDC", "station_valid": true, "station": {"available": "1", "ticket": "0", "total": "18", "free": "17"}}, "11": {"updated": 1418805181, "bonus": "0", "timestamp": "2014-12-17T09:33:01.475Z", "fullAddress": "VILHARJEVA CESTA", "number": 11, "address": "VILHARJEVA CESTA", "lat": "46.060050", "lng": "14.513020", "open": "1", "name": "VILHARJEVA CESTA", "station_valid": true, "station": {"available": "9", "
    
  2. The "updated" toplevel field is horribly inconsistent - when converted to displayed time it goes "40 seconds ago" , "55 seconds ago", "59 seconds ago", "1 hour ago". And yes, the time delta is really > 3600 seconds. The issue seems connected with the upper issue of getting randomly different response.

  3. Also note the number formatting difference in both responses.

Could that be fixed please? :P

izacus avatar Dec 17 '14 09:12 izacus