Skip to content
Backend for Urban Insights App.
Branch: master
Clone or download
Pull request Compare This branch is even with mitevpi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
assets
.gitignore
LICENSE
Procfile
README.md
address_to_sun_vector.py
app.py
obj.py
requirements.txt

README.md

Urban Insights Backend

Backend for Urban Insights App.

Generic badge

Purpose

The Python backend houses the business logic for modle parsing, analysis, and geometry operations which are fed back into the frontend for realtime visualization with AR/VR.

Developing and Deploying

Develop

To develop the application locally, type flask run into the root directory of this repository. You can test methods locally with Postman using this configuration.

Auto-Deploy to Heroku

Deployments happen automatically from the deploy branch of this repository. Once the deploy branch sees comitted changes, Heroku will rebuild the deployment at this link. Once you're ready to deploy the changes from your local branch, just make a merge request into deploy and the build will happen automatically.

Endpoints

GET /cutObj

Takes Nothing yet Returns An OBJ model serialized to JSON.

GET /getSunVector

Takes Body of data with the follwing param headers:

{
    "address": "ib schonbergs alle 2 valby",
    "month": 6,
    "day": 21,
    "hour": 12
}

Returns A string representation of the Sun Vector.

api

You can’t perform that action at this time.