Skip to content

Improve HSL data getting #5

@antont

Description

@antont

Currently we get the HSL data for busses, trams and metros via CIE's POI server. It polls some HSL endpoint (I don't know which exactly, Stinkfist was asking on IRC but we didn't find the info) every 10 seconds now.

This is basically ok - we can show the objs and they move.

However there are two problems:

  1. The update is quite rare. 10secs is too long an interval for showing moving objects. Tapani is adding client-side interpolation to make it smooth but still it's a rare update.
  2. The HTTP get to the POI server from the client here stalls sometimes. Can take a minute or so to timeout then. Chrome's network debugging tool shows 'request stalled' or so. We've been unable to repeat the problem with manual use of the browser (just refreshing the POI link) -- use jquery's $.getJSON in the code where it happens. We haven't debugged this yet.

Possible solutions:

A. Use HSL service directly, either from Tundra server side or from the Web browser.

B. Keep using the POI intermediate server but debug the stalling, and investigate if the update freq could be e.g. 1 or 3 secs. Or live with 10.

A good benchmark is the existing 2d service with this data, it updates pretty quick and reliably: http://transport.wspgroup.fi/hklkartta/

We decided yesterday in the meet that Admino will work on this data retrieval so assigning to Ali as we agreed on IRC where just discussed this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions