censusreporter / census-api

The home for the API that powers the Census Reporter project.
MIT License
165 stars 49 forks source link

getting census data from vector tiles #55

Open burritojustice opened 8 years ago

burritojustice commented 8 years ago

Hi!

Have you considered making census data (population, etc) available in the vector tiles?

Also, returning a centroid would be handy for labels, since the polygons get clipped at high zoom levels (e.g. above z15) levels.

iandees commented 8 years ago

I suggested this while chatting with @burritojustice:

We could add a ?table_ids=B01003 to the GeoJSON tiles endpoint, which would join the specified tables with the geographies in the tile. This would make it easier to build choropleths. It'd be a little harder to cache these tiles, but definitely be possible.

rfriberg commented 7 years ago

+1 This would be hugely helpful for new users to avoid wrestling with joins on their own.