CrowdSenSim  1.0
Typedefs | Functions
MapCity.h File Reference
#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>

Go to the source code of this file.

Typedefs

typedef std::map< int, list< int > > GraphCityMap
 

Functions

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

Typedef Documentation

typedef std::map<int, list<int> > GraphCityMap

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.