I've just started using OpenStreetMap in a C# project. It's great! Occasionally I notice, when retrieving tiles, that some of them don't seem to exist...even though "nearby" tiles do. For example, https://tile.openstreetmap.org/13/665/1580.png returns a 404 error, but https://tile.openstreetmap.org/13/665/1579.png and https://tile.openstreetmap.org/13/665/1581.png both exist. Are there some regions/tiles that just aren't in the database? If so, I'd love to know why. Just curious! asked 01 Jun '22, 19:09 Motorcycle M... |
Fascinating! The missing tile now shows up on my iPhone browser. I guess the server cache was invalid earlier today
Bear in mind that if you're accessing tiles programmatically, you need to set a distinct User-Agent header that identifies your application. If you use the stock C# one you're at risk of being blocked.
Thanx, Richard. I am supplying a User-Agent identifier (based on my program's FQ name). Just to be clear, you don't mean I need to supply a unique identifier for each request? That's not how I read the docs. If I need to do that I'd have to tweak the program.
No, it has to be unique for your application, not for each individual request of your application. So all your requests should have to same UA which is unique for your application.