Locus Map - forum

Support => Wishlist => Under review => Topic started by: mynamemyname on March 11, 2011, 11:34:22

Title: Please add "traffic" layer
Post by: mynamemyname on March 11, 2011, 11:34:22
It will be great if Locus will support road traffic layer, from google.maps and/or yandex.maps.
Thanks!
Title: Re: Please add "traffic" layer
Post by: Menion on March 11, 2011, 11:41:22
moved to "wishlist"

I'll think about it. It mainly depend on how all this layer is done
Title: Re: Please add "traffic" layer
Post by: mynamemyname on March 11, 2011, 12:35:29
Sorry for incorrect topic, thanks for moving.

About traffic layer - I am sure this is just a transparent bitmap.
Look at this cool PC application - http://sasgis.ru/sasplaneta/ (http://sasgis.ru/sasplaneta/) - it can apply any traffic layer to any map, for example google.traffic to the OSM.map, or yandex.traffic to the google.satellite. This is not mainstream feature, so, i think the work with layers must not be very complicated.

Anyway thanks for very good and useful app!
Wishes
Title: Re: Please add "traffic" layer
Post by: Menion on March 11, 2011, 12:48:24
hmm interesting, it's no just and transparent overlay, it's completely whole map layer

look here

http://mt0.google.com/vt/hl=en&x=1106&y=693&z=11 (http://mt0.google.com/vt/hl=en&x=1106&y=693&z=11)

(//http://mt0.google.com/vt/hl=en&x=1106&y=693&z=11)


and with trafic

http://mt0.google.com/vt/lyrs=m@1460000 ... z=11&s=Gal (http://mt0.google.com/vt/lyrs=m@146000000,transit:comp%7Cvm:1&hl=en&expIds=200987&opts=r&x=1106&y=693&z=11&s=Gal)

(//http://mt0.google.com/vt/lyrs=m@146000000,transit:comp%7Cvm:1&hl=en&expIds=200987&opts=r&x=1106&y=693&z=11&s=Gal)

so adding this is pretty simple as and alternative map layer anyway here comes new trouble and that is validity of map data. This map have to be set to be valid for example only one hour, no more .. correct? Hmm have to think about it :)
Title: Re: Please add "traffic" layer
Post by: mynamemyname on March 11, 2011, 13:20:59
Take a look, i done some screenshots too :)
OSM.map + google.traffic
(//http://files.baziki.com/pub/img/osm-gt-1.jpg)
google.satellite + google.traffic
(//http://files.baziki.com/pub/img/gs-gt-1.jpg)
google.traffic only
(//http://files.baziki.com/pub/img/empty-gt-1.jpg)
Title: Re: Please add "traffic" layer
Post by: Menion on March 11, 2011, 13:50:31
hmm that's much more interesting ... may you also send me links to this images?
Title: Re: Please add "traffic" layer
Post by: mynamemyname on March 11, 2011, 13:58:24
I not sure I understood correctly, what you mean as "links to the images"? I took this screenshots using Sasplanet, just selecting different options.
Title: Re: Please add "traffic" layer
Post by: Menion on March 11, 2011, 14:04:08
ah ok, I thought that you do this on some web page. I translated sasplanet web page to english and looks that this is only software for desktop computer? Or is there any web page where I can see this maps and check url that is web page call for images (this will do by myself, just need the web page)? And count then russian is unreadable for me :) so please if exist any web page, then rather direct link :)
Title: Re: Please add "traffic" layer
Post by: mynamemyname on March 11, 2011, 14:21:28
Yes, unfortunately sasplanet has only russian language at the website, i agree it's their mistake. And, again yes, this is only desktop PC application.
I understood, you need URL where to retrieve the images with that "traffic layers". Ehehe, it's a little complicated to detect, because sasplanet is not show URL where it takes the images  ;)
Anyway, i will try. My idea is to look whole tcp stream from that application to search required URL requests.
Title: Re: Please add "traffic" layer
Post by: mynamemyname on March 11, 2011, 15:07:10
i scanned tcp stream, and found something.
this is example of such URL for yandex.traffic:
http://jgo.maps.yandex.net/tiles?l=trf& ... 1299850560 (http://jgo.maps.yandex.net/tiles?l=trf&x=2468&y=1283&z=12&tm=1299850560)
the result is .png file
but, so strange, this URL succesfully opens only couple times for me, next trying was failed with 404/not found  :?:

for google it's like this:
http://mt1.google.com/vt?hl=ru&lyrs=h@1 ... y=639&z=11 (http://mt1.google.com/vt?hl=ru&lyrs=h@130,traffic%7Cseconds_into_week:-1&style=15&x=1238&y=639&z=11)

cool?  ;)
Title: Re: Please add "traffic" layer
Post by: IDDQD on March 17, 2011, 21:45:43
It is possible to switch Sasplanet into English language. See screenshot for details.

About sniffing URL sheme for Traffic services. The simplest way for it - is introduce in programm settings any simple proxy-server with a logging facility.
Title: Re: Please add "traffic" layer
Post by: pou-chi on May 29, 2011, 20:36:00
Any news?

For this feature, i would be happy to upgrade to the full version.
Title: Re: Please add "traffic" layer
Post by: Menion on May 30, 2011, 06:10:02
Hi,
  no news. First, I really forgot on this. Second, I expect that these data will be licenced in same way as Yandex maps, so it's not possible to add it to Locus now (due to Terms of use)