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

Integrate accessibility to population in heatmap #1907

Closed
Tracked by #1804
EPajares opened this issue Jan 29, 2023 · 2 comments
Closed
Tracked by #1804

Integrate accessibility to population in heatmap #1907

EPajares opened this issue Jan 29, 2023 · 2 comments
Assignees

Comments

@EPajares
Copy link
Collaborator

EPajares commented Jan 29, 2023

So far accessibility is computed to POIs, and soon to AOIs. The next step is computing accessibility also to population points.

@EPajares EPajares changed the title Integrate accessibility to population Integrate accessibility to population in heatmap Jan 29, 2023
@EPajares EPajares added the API label Jan 29, 2023
@EPajares
Copy link
Collaborator Author

EPajares commented Feb 25, 2023

opportunity_matrix = {
        # POI example
        "pub": {
            "travel_times": [[1, 2, 3], [1, 2, 3], [1, 2, 3]],
            "travel_times_matrix_size": [3,3,3],
            "grid_ids": [[2740982309, 2740982310, 2740982311], [2740982309, 2740982310, 2740982311], [2740982309, 2740982310, 2740982311]],
            "names": ["name1", "name2", "name3"],
            "uids": ["-1051-54535-pub-0000", "-1051-54535-pub-0001", "-1051-54535-pub-0002"],
            "weight": [1, 1, 1]
        },
        # Population example
        "population":  {
            "travel_times": [1, 2, 3],
            "travel_times_matrix_size": [3,3,3],
            "grid_ids": [2740982309, 2740982310, 2740982311],
            "names": [],
            "uids": [1,2,3],
            "weight": [3.4, 5.3, 7.2]
        },
        # AOI example
        "park": {
            "travel_times": [[1, 2, 3], [1, 2, 3], [1, 2, 3]],
            "travel_times_matrix_size": [3,3,3],
            "grid_ids": [[2740982309, 2740982310, 2740982311], [2740982309, 2740982310, 2740982311], [2740982309, 2740982310, 2740982311]],
            "names": ["name1", "name2", "name3"],
            "uids": [1,2,3],
            "weight": [[10000, 9000, 8000], [10000, 9000, 8000], [10000, 9000, 8000]]
        }
}

We need to slightly alter the structure of the opportunity matrices for this. I am introducing here the column weight that basically is the population count or the size of the AOI intersection.

@EPajares EPajares assigned majkshkurti and unassigned metemaddar Feb 28, 2023
@p4b-bro
Copy link

p4b-bro bot commented Mar 15, 2023

This task/issue closed on Wed Mar 15 2023 ✅

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

3 participants