-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (27 loc) · 844 Bytes
/
main.cpp
File metadata and controls
35 lines (27 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <fstream>
#include <iomanip> /*setprecision*/
#include <iostream>
#include <map>
#include <string>
#include <unordered_map>
#include <vector>
#include "application.h"
#include "graph.h"
using namespace std;
int main() {
cout << "** Navigating UIC open street map **" << endl;
cout << std::setprecision(8);
string default_filename = "data/uic-sp25.osm.json";
// Build graph from input data
graph<long long, double> G;
vector<BuildingInfo> buildings;
unordered_map<long long, Coordinates> coords;
ifstream input(default_filename);
buildGraph(input, G, buildings, coords);
cout << "# of buildings: " << buildings.size() << endl;
cout << "# of vertices: " << G.numVertices() << endl;
cout << "# of edges: " << G.numEdges() << endl;
application(buildings, G);
cout << "** Done **" << endl;
return 0;
}