MCPcopy Create free account
hub / github.com/comaps/comaps / CheckHouseNumberWhenIsAddress

Method CheckHouseNumberWhenIsAddress

libs/indexer/editable_map_object.cpp:508–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508bool EditableMapObject::CheckHouseNumberWhenIsAddress() const
509{
510 // House number is mandatory for the address type. For other types it's optional.
511 return !m_houseNumber.empty() || !m_types.Has(classif().GetTypeByReadableObjectName("building-address"));
512}
513
514// static
515bool EditableMapObject::ValidateFlats(string const & flats)

Calls 3

emptyMethod · 0.45
HasMethod · 0.45

Tested by

no test coverage detected