Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding an API server for map data #36

Closed
indraneel opened this issue Apr 20, 2023 · 0 comments
Closed

Adding an API server for map data #36

indraneel opened this issue Apr 20, 2023 · 0 comments
Assignees

Comments

@indraneel
Copy link
Contributor

indraneel commented Apr 20, 2023

#30 will create a database of POIs/polygons. This issue will create an API layer for the UI to access those things as needed.

The API layer will serve two kinds of data:

  • all data (not geographic data) each row as JSON data
  • geographic data from each row as vector tiles

As part of this ticket, we can stick to FastAPI and use PostGIS functions directly for vector tile rendering: https://medium.com/nyc-planning-digital/using-the-new-mvt-function-in-postgis-75f8addc1d68

rough sketch of API endpoints needed:

  • get a list of all cities
  • for a given city:
    • get all hospitals
    • get all stops
    • get all routes
    • get flood layers

How will the API be used?

  • on load, load all data for a given city
  • send bounding box from UI to API and get back active city within bbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants