CrowdSenSim  1.0
Data Structures | Macros | Functions | Variables
MapCity.cc File Reference
#include "../Headers/MapCity.h"
#include <fstream>
#include <iostream>
#include <string>
#include <cstdlib>
#include <sstream>
#include <vector>
#include <cmath>
#include <stdlib.h>
#include <map>
#include <list>
#include <algorithm>
#include <iomanip>
#include "../Headers/Event.h"
#include "../Headers/ReadValues.h"

Data Structures

struct  LocationA
 

Macros

#define pi   3.14159265358979323846
 
#define R   6371
 
#define TO_RAD   (3.1415926536 / 180)
 

Functions

double dist (double th1, double ph1, double th2, double ph2)
 
void creatingMapAssociationGraphPoints (string mapPointsCentreCity, string nameCity)
 

Variables

list< LocationAlocationsLA
 
list< LocationA >::iterator it_locationsLA
 

Macro Definition Documentation

#define pi   3.14159265358979323846
#define R   6371
#define TO_RAD   (3.1415926536 / 180)

Function Documentation

void creatingMapAssociationGraphPoints ( string  mapPointsCentreCity,
string  nameCity 
)

It creates two different files:

  • MapGraphPoints.txt: it contains a list of points and every adjacent points, where users can move. The points including within the ray are called adjacent
  • MapAssociation.txt: it contains the list of all points (with geographical references) where the pedestrians move.
double dist ( double  th1,
double  ph1,
double  th2,
double  ph2 
)

It computes the distance between two general points in the map Inputs: Longitude and latitude of two points Outputs: double value of the distance

Computes the distance in meters between two points in the map.

Variable Documentation

list<LocationA>::iterator it_locationsLA
list<LocationA> locationsLA