| 170 | } |
| 171 | |
| 172 | void validate_tile(const osrm::OSRM &osrm, bool use_string_only_api) |
| 173 | { |
| 174 | using namespace osrm; |
| 175 | |
| 176 | // This tile should contain most of monaco |
| 177 | TileParameters params{17059, 11948, 15}; |
| 178 | |
| 179 | std::string str_result; |
| 180 | const auto rc = run_tile(osrm, params, str_result, use_string_only_api); |
| 181 | BOOST_CHECK(rc == Status::Ok); |
| 182 | |
| 183 | BOOST_CHECK(str_result.size() > 114000); |
| 184 | |
| 185 | vtzero::vector_tile tile{str_result}; |
| 186 | |
| 187 | validate_feature_layer(tile.next_layer()); |
| 188 | validate_turn_layer(tile.next_layer()); |
| 189 | validate_node_layer(tile.next_layer()); |
| 190 | validate_internal_nodes_layer(tile.next_layer()); |
| 191 | } |
| 192 | |
| 193 | void test_tile_ch(bool use_string_only_api) |
| 194 | { |