You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2015-02-05 14:24:13

DamienCourtois
Member
Registered: 2015-02-05
Posts: 2

connection expired on tile.openstreetmap.org, fine on mqcdn.com

Hi,

I'm working on a small mapping application as a hobby project (nothing huge, mainly doing this for learning about UI, UX and in the case of OSM http requests) I'm using Qt, and up until now I was requesting tiles from MapQuest (otile[..].mqcdn.com/tiles/...) without any problem. In my test, I create a request with the full url (for instance : http://otile1.mqcdn.com/tiles/1.0.0/map/0/0/0.jpg) and send it, then I get the answer just fine.

The problem is that I wanted to test other tile providers, such as OpenStreetMap and CartoDB (I really like the Positron looks tongue) When I try the exact same code (except the URL obviously) then I get an error 99 - connection expired. The strange thing is that if I copy / paste the URL into a browser, the tile display just fine.

So I think it's got something to do with how my request is created, maybe the header ? I found this page : http://wiki.openstreetmap.org/wiki/Tile_usage_policy So I tried to add a user-agent (this seems to be the only "mandatory" header to provide) but that didn't change a thing.

Also, if my application was blocked (which I doubt since I'm only making 1 request every few minutes) I should still get a tile, only a tile saying "access blocked", if I trust the wiki page hmm

So here I'm completely lost as to why I only can get tiles from MapQuest. If anyone has any idea of what I might be doing wrong, suggestions, questions for more details on how I'm doing things, etc. feel free to answer smile

Regards,
Damien Courtois

Offline

#2 2015-02-16 10:51:26

DamienCourtois
Member
Registered: 2015-02-05
Posts: 2

Re: connection expired on tile.openstreetmap.org, fine on mqcdn.com

Hi again,

In case anyone has the same problem and stumble on this post: it was a "simple" matter of proxy, or something similar. I installed OpenVPN on my computer (at work) and now I can get tiles from all sources.
I still don't know why it worked with MapQuest but not the other 2, but now I can continue working on my project.

Offline

Board footer

Powered by FluxBB