Spb Transport Online

After was launched the city portal of public transport of Saint-Petersburg and installed transport monitoring systems GLONASS/GPS was made possible something that previously could only dream of — coming to a stop to look at where we are right now is the bus that we wait.
And "right now" is not just a figure of speech, no exaggeration. Transport really is displayed on the map in real time. Of course, a view of the map on a mobile device.



Free software "Spb Transport Online" exists in two versions — for Android and Windows Phone. Despite the different interface, they are very similar in terms of ease-of-use — run, the GPS determines where we are and use the button to select the desired type of transport. The result in the picture above (clickable). Blue, green trolleybuses, and trams — red.

example applications

the
    the
  • You are standing at the bus stop at 12 at night waiting for the tram. Are there trams? And if you have to, it is left on the line one tram? It may be that the last tram broke down and went to the Park.
  • the
  • You're late for work, and need a trolley. To catch the bus or wait?
  • the
  • rush Hour comes chock-full bus. Attempts to squeeze or wait for the next? Suddenly he is very close?

"Spb Transport Online" will help you — now you'll know exactly where you need transport and save a bunch of nerve cells.

Some technical details

The principle of operation of the program based on obtaining the physical size displayed on the screen of the map and the geographical coordinates of the corners of the map. On the basis of these data generates the request to the server and in response turns transparent png with the display position of the transport in the selected area of the map. The size of the images for screen 240x320 is of the order of 10 kilobytes. We must remember that the picture contains only one type of transport and if you have included all three types, they ask for three images, i.e. 30 kbps of traffic in total, one update. Next, the resulting picture is overlaid on the map. Given the fact that the overlaid image strictly according to the size of the map, then the shift map, when zooming — are additional requests to the server to update the images depending on the geographical coordinates of the corners of the map.

Given this approach, it is not possible to isolate any particular route, but in future versions I plan to make a search for routes and mapping of bus stops, route schedules and stops.

Useful links

Referred portal public transport
"Spb Transport Online" on Google Play
"Spb Transport Online" in Marketplace
New versions will here (not to make a post on habré every time)

a couple of moments

the
    the
  • In a discussion 4pda several times heard the question — will there be a version for the iPhone. No, it's not. I don't have iPhone :) But if someone wants to do and there will be questions — write, I will help where I can. Although all necessary information is in the paragraph about the technical details.
  • the
  • Will there be a version for Windows Mobile will be possible, but no promises.
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

ODBC Firebird, Postgresql, executing queries in Powershell

garage48 for the first time in Kiev!

The Ministry of communications wants to ban phones without GLONASS