add testing geojson files

This commit is contained in:
karenzshea
2017-05-31 19:12:07 +02:00
parent c937d20e48
commit 564a29141e
6 changed files with 89 additions and 61 deletions
-8
View File
@@ -44,14 +44,6 @@ inline void ValidateFeature(const rapidjson::Value &feature)
{
throw osrm::util::exception("Feature has non-object properties member.");
}
if (!feature["properties"].GetObject().HasMember("TZID"))
{
throw osrm::util::exception("Feature is missing TZID member in properties.");
}
else if (!feature["properties"].GetObject()["TZID"].IsString())
{
throw osrm::util::exception("Feature has non-string TZID value.");
}
if (!feature.HasMember("geometry"))
{
throw osrm::util::exception("Feature is missing geometry member.");