Original from jusc: viewtopic.php?f=27&t=3032 (http://forum.locusmap.eu/viewtopic.php?f=27&t=3032)
<?xml version="1.0" encoding="UTF-8"?>
<providers>
<provider id="11701" type="0" visible="true" background="-1">
<name>Overlays</name>
<mode>Google Traffic</mode>
<area></area>
<url><![CDATA[http://mts{s}.google.com/vt?hl=de&src=app&lyrs=traffic&x={x}&y={y}&z={z}&style=15]]></url>
<serverPart>0;1</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>23</zoomMax>
<tileSize>256</tileSize>
<attribution><![CDATA[(c)2011 Google - Map data (c)2011 Tele Atlas]]></attribution>
<extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
<extraHeader><![CDATA[Referer#http://maps.google.com/]]></extraHeader>
</provider>
</providers>
You should go into map manager, click on icon right from this overlay and use "set valid for" to make sure you get the current data.
[attachment=0:3rvgux32]Screenshot_2013-08-01-17-52-14.jpg[/attachment:3rvgux32]
Hint: Set "Valid for" to 0 hours
Das Traffik Overlay funktioniert leider nicht mehr. Weiß jemand, was man da anpassen muss?
danke Jochen
Use M******n:
<?xml version="1.0" encoding="UTF-8"?>
<providers>
<provider id="80300" type="0" visible="true" background="-1">
<name>Overlays</name>
<mode>Traffic - M******n</mode>
<countries>Europe</countries>
<url><![CDATA[http://map{s}.viam******n.com/map/mapdirect?map=viam******n&z={z}&x={x}&y={y}&format=png&version=201503191157&layer=traffic&locale=default&debug_pattern=.*]]></url>
<serverPart>1;2;3</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>16</zoomMin>
<zoomMax>28</zoomMax>
<tileSize>256</tileSize>
<extraHeader><![CDATA[Referer#http://www.viam******n.de/]]></extraHeader>
<extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/21]]></extraHeader>
<usage>overlay</usage>
</provider>
</providers>
Edit: Out of respect for terms of use, I have obfuscated the url and the name
Or use similar traffic data from other source:
<provider id="10861" type="0" visible="true" background="-1">
<name>Traffic Overlay</name>
<mode>Traffic - Overlay</mode>
<countries>World</countries>
<url><![CDATA[https://map{s}.mappy.net/map/1.0/slab/traffic/256/{z}/{x}/{y}]]></url>
<serverPart>1;2;3;4</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>28</zoomMax>
<tileSize>256</tileSize>
<attribution><![CDATA[]]></attribution>
<extraHeader><![CDATA[Referer#http://en.mappy.com]]></extraHeader>
<extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0]]></extraHeader>
<usage>overlay</usage>
</provider>
In consideration and respect of "the terms of use" (Google, viamichelin, TomTom) please mask some company name parts but feel free, to share your private scripts via PM. Thanks for understanding.
edit
thx guys!
Since both Mapy and Viamichelin closed down their traffic overlay service. Google is the only one that still works. Here's the code:
<provider id="11701" type="0" visible="true" background="-1">
<name>Overlays</name>
<mode>Traffic</mode>
<area></area>
<url><![CDATA[http://mt{s}.g*****.com/vt/lyrs=traffic,transit&x={x}&y={y}&z={z}]]></url>
<serverPart>0;1;2;3</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>12</zoomMin>
<zoomMax>23</zoomMax>
<tileSize>256</tileSize>
<attribution><![CDATA[(c)2026 Google]]></attribution>
<extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
<extraHeader><![CDATA[Referer#http://maps.google.com/]]></extraHeader>
<usage>overlay</usage>
</provider>
Note that 'transit' is required as 'traffic' only does not work anymore. You need to combine traffic with another map and transit works for that purpose.