NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%20Mayor's gravatar image

Motorcycle M...
11112
accept rate: 0%

Fascinating! The missing tile now shows up on my iPhone browser. I guess the server cache was invalid earlier today

(02 Jun '22, 01:26) Motorcycle M...
1

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.

(04 Jun '22, 10:57) Richard ♦

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.

(04 Jun '22, 18:32) Motorcycle M...
1

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.

(04 Jun '22, 20:04) Spiekerooger
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×88

question asked: 01 Jun '22, 19:09

question was seen: 722 times

last updated: 04 Jun '22, 20:04

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum