←back to thread

OpenStreetMap's New Vector Tiles

(tech.marksblogg.com)
480 points marklit | 4 comments | | HN request time: 1.358s | source
1. timwis ◴[] No.42185659[source]
Does anyone know if vector tiles could carry adequate data to facilitate reverse geocoding (address lookup)? E.g. the polygon of a building containing its street address in its metadata. I’m surprised I haven’t seen that before, as reverse geocoding services can get expensive, though I wonder if it’s because I’ve misunderstood how vector tiles actually work.
replies(3): >>42185684 #>>42185837 #>>42187537 #
2. durkie ◴[] No.42185684[source]
Yes, they could. You can attach whatever metadata you want to a vector tile feature.
3. lxgr ◴[] No.42185837[source]
Possibly, but why would you want to do this client side? This seems like the type of operation that makes much more sense in "OSM space", not vector graphics space.
4. sp8962 ◴[] No.42187537[source]
Sure you could .... but to find something you would need to have the tile in question so you would need to calculate the tile to retrieve, and then find the object at the location (which is roughly equivalent to rendering the tile).

Doesn't seem to make sense when you can just run a nominatim or photon instance locally. Not to mention that currently you would typically have to add additional address data to the mix to get the quality of commercial geocoding services which makes the doing it via tiles even less attractive.