2016-03-23 07:57:47 -04:00
|
|
|
#ifndef OSRM_UNIT_TEST_COORDINATES
|
|
|
|
#define OSRM_UNIT_TEST_COORDINATES
|
|
|
|
|
|
|
|
#include "osrm/coordinate.hpp"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2017-03-21 06:27:15 -04:00
|
|
|
// Somewhere in 2b8dd9343d5e615afc9c67bcc7028a63 Monaco
|
2016-03-23 07:57:47 -04:00
|
|
|
|
|
|
|
// Convenience aliases
|
|
|
|
using Longitude = osrm::util::FloatLongitude;
|
|
|
|
using Latitude = osrm::util::FloatLatitude;
|
|
|
|
using Location = osrm::util::Coordinate;
|
|
|
|
using Locations = std::vector<Location>;
|
|
|
|
|
|
|
|
inline Location get_dummy_location()
|
|
|
|
{
|
2017-03-21 06:27:15 -04:00
|
|
|
return {osrm::util::FloatLongitude{7.437069}, osrm::util::FloatLatitude{43.749249}};
|
2016-03-23 07:57:47 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
inline Locations get_locations_in_small_component()
|
|
|
|
{
|
2017-03-21 06:27:15 -04:00
|
|
|
return {{Longitude{7.438023}, Latitude{43.746465}},
|
|
|
|
{Longitude{7.439263}, Latitude{43.746543}},
|
|
|
|
{Longitude{7.438190}, Latitude{43.747560}}};
|
2016-03-23 07:57:47 -04:00
|
|
|
}
|
|
|
|
|
2016-04-11 06:31:06 -04:00
|
|
|
inline Locations get_locations_in_big_component()
|
|
|
|
{
|
2017-03-21 06:27:15 -04:00
|
|
|
return {{Longitude{7.415800}, Latitude{43.734132}},
|
|
|
|
{Longitude{7.417710}, Latitude{43.736721}},
|
|
|
|
{Longitude{7.421315}, Latitude{43.738814}}};
|
2016-04-11 06:31:06 -04:00
|
|
|
}
|
|
|
|
|
2016-03-23 07:57:47 -04:00
|
|
|
#endif
|