Skip to content

oriolclosa/hackupc-venuegraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HackUPC

Campus Nord (UPC) paths and signs generator

Using a self-created map of the Campus Nord (UPC) where HackUPC is held, it computes the shortest path from a given place to another. Furthermore, it automatically creates a JSON with the signs content to be put on each point so hackers don't get lost. Just tell the system which points do you want to put a sign on and where should they give indications to and it will generate them for you. But not only this, you will also get the approximate distance in meters for every route on each sign!

This repository is dedicated to Maria Serna and Maria Blesa from the Computer Science department at Universitat Politècnica de Catalunya.

Requirements

It's just a C++ program, so you'll need just any compiler, GCC is okay. Be aware that it uses some C++11 functions and so you'll need at least this version of C++.

Usage

Change the placesSigns function and add any points where you would like to put signs on, you can also follow this ID with all the codes of the places you want them to be on the sign. Compile, run and there you go, a ready to be converted JSON!

Graph reference

Beware that the code for any place is created by concatenating the identifier of the building, the floor and a number with hyphens. For example, if we want to identify the possible sign number 7 in the floor 0 of the A6 building, the code for it would be A6-0-7.

Campus Nord Graph

Codes reference

Below are the codes for the places you can show on the signs.

Code Text displayed
CA Cafeteria
ID Info-Desk
BC Baggage Check-in
HL Hardware Lab
T1 Talk Room 1
T2 Talk Room 2
TR Talk Rooms
ME Meals
SH Showers
AU Auditorium
MB Men Bathroom
WB Women Bathroom
SR Sleeping Rooms
HR Hacker Rooms

Result example

The result of the code could be the following.

{
        "sign":
                [
                        {
                                "id": "A6-S1-12",
                                "line":
                                        [
                                                {
                                                        "place": "Baggage Check-in",
                                                        "direction": "<-",
                                                        "distance": 28,
                                                        "building": "A5"
                                                },
                                                {
                                                        "place": "Hacker Rooms",
                                                        "direction": "<-",
                                                        "distance": 36,
                                                        "building": "A5"
                                                },
                                                {
                                                        "place": "Men Bathroom",
                                                        "direction": "/\",
                                                        "distance": 1,
                                                        "building": "A6"
                                                },
                                                {
                                                        "place": "Women Bathroom",
                                                        "direction": "/\",
                                                        "distance": 1,
                                                        "building": "A6"
                                                }
                                        ]
                        },
                        {
                                "id": "A5-0-7",
                                "line":
                                        [
                                                {
                                                        "place": "Info-Desk",
                                                        "direction": "/\",
                                                        "distance": 14,
                                                        "building": "A5"
                                                },
                                                {
                                                        "place": "Hacker Rooms",
                                                        "direction": "<-",
                                                        "distance": 26,
                                                        "building": "A5"
                                                },
                                                {
                                                        "place": "Sleeping Rooms",
                                                        "direction": "<-",
                                                        "distance": 48,
                                                        "building": "A4"
                                                },
                                                {
                                                        "place": "Cafeteria",
                                                        "direction": "/\",
                                                        "distance": 49,
                                                        "building": "A6"
                                                },
                                                {
                                                        "place": "Talk Rooms",
                                                        "direction": "/\",
                                                        "distance": 8,
                                                        "building": "A5"
                                                }
                                        ]
                        }
                ]
}

About

🗺️ Campus Nord (UPC) in a graph for HackUPC next edition routes and signs making

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages