CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_address.h>
Public Member Functions | |
void | Clear () |
CString | ToString (bool aFull=true, const TPointFP *aLocation=nullptr) const |
CString | ToStringWithLabels () const |
Public Attributes | |
CString | iBuilding |
CString | iFeature |
CString | iStreet |
CString | iSubLocality |
CString | iLocality |
CString | iIsland |
CString | iSubAdminArea |
CString | iAdminArea |
CString | iCountry |
CString | iPostCode |
A structured address for use with FindAddress.
void CartoType::CAddress::Clear | ( | ) |
Clears an address to its just-constructed state.
CString CartoType::CAddress::ToString | ( | bool | aFull = true , |
const TPointFP * | aLocation = nullptr |
||
) | const |
Gets the address as a string. If aFull is true supplies the main administrative division (state, province, etc.) and country. If aLocation is non-null, prefixes that location in degrees to the address.
CString CartoType::CAddress::ToStringWithLabels | ( | ) | const |
Gets the elements of an address. Labels each element with its category (e.g., 'building', 'feature', 'street').
CString CartoType::CAddress::iAdminArea |
The administrative area: state, province, etc. By preference this is a level-4 area in the OpenStreetMap classification. Level 3 is used if no level-4 area is found.
CString CartoType::CAddress::iBuilding |
The name or number of the building.
CString CartoType::CAddress::iCountry |
The country.
CString CartoType::CAddress::iFeature |
The name of a feature or place of interest.
CString CartoType::CAddress::iIsland |
The name of an island.
CString CartoType::CAddress::iLocality |
The village, town or city.
CString CartoType::CAddress::iPostCode |
The postal code.
CString CartoType::CAddress::iStreet |
The street, road or other highway.
CString CartoType::CAddress::iSubAdminArea |
The subsidiary administrative area: county, district, etc. By preference this is a level-6 area in the OpenStreetMap classification. Levels 7, 8 and 5 are used in that order if no level-6 area is found.
CString CartoType::CAddress::iSubLocality |
The suburb, neighborhood, quarter or other subdivision of the locality.