Now remove the polygon_area, segments_intersect, ring_has_self_intersection, ring_has_duplicate_coords, dp_simplify, simplify_polygon, parse_house_number, is_included_highway functions (all now in geometry.h):


Edit

// Approximate polygon area in square degrees
static float polygon_area(const std::vector<std::pair<double,double>>& vertices) {
    double area = 0;
    size_t n = vertices.size();
    for (size_t i = 0; i < n; i++) {
        size_t j = (i + 1) % n;
        area += vertices[i].first * vertices[j].second;
        area -= vertices[j].first * vertices[i].second;
    }
    return static_cast<float>(std::fabs(area) / 2.0);
}