Marble
Placemark.cpp
73 if (category == GeoDataPlacemark::AccomodationHotel || category == GeoDataPlacemark::FoodRestaurant) {
84 addFirstTagValueOf(m_description, QStringList() << QStringLiteral("brand") << QStringLiteral("operator"));
87 if ((category >= GeoDataPlacemark::AccomodationHostel && category <= GeoDataPlacemark::AccomodationGuestHouse)
103 if (category == GeoDataPlacemark::TransportParking || category == GeoDataPlacemark::TransportBicycleParking
111 addFirstTagValueOf(m_description, QStringList() << QStringLiteral("brand") << QStringLiteral("operator"));
117 addTagDescription(m_description, QStringLiteral("self_service"), QStringLiteral("yes"), QStringLiteral("Self Service"));
118 addTagDescription(m_description, QStringLiteral("takeaway"), QStringLiteral("yes"), QStringLiteral("Take Away"));
119 addTagDescription(m_description, QStringLiteral("outdoor_seating"), QStringLiteral("yes"), QStringLiteral("Outdoor Seating"));
120 addTagDescription(m_description, QStringLiteral("ice_cream"), QStringLiteral("yes"), QStringLiteral("Ice Cream"));
121 addTagDescription(m_description, QStringLiteral("smoking"), QStringLiteral("dedicated"), QStringLiteral("Smoking (dedicated)"));
122 addTagDescription(m_description, QStringLiteral("smoking"), QStringLiteral("yes"), QStringLiteral("Smoking allowed"));
123 addTagDescription(m_description, QStringLiteral("smoking"), QStringLiteral("separated"), QStringLiteral("Smoking (separated)"));
124 addTagDescription(m_description, QStringLiteral("smoking"), QStringLiteral("isolated"), QStringLiteral("Smoking (isolated)"));
125 addTagDescription(m_description, QStringLiteral("smoking"), QStringLiteral("no"), QStringLiteral("No smoking"));
126 addTagDescription(m_description, QStringLiteral("smoking"), QStringLiteral("outside"), QStringLiteral("Smoking (outside)"));
127 addTagDescription(m_description, QStringLiteral("smoking:outside"), QStringLiteral("yes"), QStringLiteral("Smoking (outside)"));
128 addTagDescription(m_description, QStringLiteral("smoking:outside"), QStringLiteral("separated"), QStringLiteral("Smoking (outside separated)"));
129 addTagDescription(m_description, QStringLiteral("smoking:outside"), QStringLiteral("no"), QStringLiteral("No smoking outside"));
131 addFirstTagValueOf(m_description, QStringList() << QStringLiteral("brand") << QStringLiteral("operator"));
156 tr("Digital scanning", "A copy shop provides a service for scanning documents into digital files"));
160 tr("No digital scanning", "A copy shop does not provide a service for scanning documents into digital files"));
180 tr("Digital printing", "A copy shop provides services to print paper documents from digital files"));
184 tr("No digital printing", "A copy shop does not provide services to print paper documents from digital files"));
188 tr("Press printing service", "A copy shop provides a professional service to print a large number of copies of a document"));
193 tr("No press printing service", "A copy shop does not provide a professional service to print a large number of copies of a document"));
197 tr("Press printing assistance", "A copy shop provides help with preparing special printing techniques"));
201 tr("No press printing assistance", "A copy shop does not provide help with preparing special printing techniques"));
211 addTagDescription(m_description, QStringLiteral("organic"), QStringLiteral("yes"), tr("Sells organic food", "A deli that sells organic food"));
255 addTagDescription(m_description, QStringLiteral("salt"), QStringLiteral("yes"), tr("Sells salt", "A tobacco shop that also sells salt"));
264 } else if (category == GeoDataPlacemark::TransportRentalBicycle || category == GeoDataPlacemark::TransportRentalCar
266 addFirstTagValueOf(m_description, QStringList() << QStringLiteral("brand") << QStringLiteral("operator"));
269 addFirstTagValueOf(m_description, QStringList() << QStringLiteral("brand") << QStringLiteral("operator"));
270 addTagDescription(m_description, QStringLiteral("fuel:diesel"), QStringLiteral("yes"), tr("Diesel"));
271 addTagDescription(m_description, QStringLiteral("fuel:biodiesel"), QStringLiteral("yes"), tr("Biodiesel"));
272 addTagDescription(m_description, QStringLiteral("fuel:octane_91"), QStringLiteral("yes"), tr("Octane 91"));
273 addTagDescription(m_description, QStringLiteral("fuel:octane_95"), QStringLiteral("yes"), tr("Octane 95"));
274 addTagDescription(m_description, QStringLiteral("fuel:octane_98"), QStringLiteral("yes"), tr("Octane 98"));
275 addTagDescription(m_description, QStringLiteral("fuel:octane_100"), QStringLiteral("yes"), tr("Octane 100"));
285 addTagDescription(m_description, QStringLiteral("recycling:batteries"), QStringLiteral("yes"), tr("Batteries"));
286 addTagDescription(m_description, QStringLiteral("recycling:clothes"), QStringLiteral("yes"), tr("Clothes"));
287 addTagDescription(m_description, QStringLiteral("recycling:glass"), QStringLiteral("yes"), tr("Glass"));
288 addTagDescription(m_description, QStringLiteral("recycling:glass_bottles"), QStringLiteral("yes"), tr("Glass bottles"));
289 addTagDescription(m_description, QStringLiteral("recycling:green_waste"), QStringLiteral("yes"), tr("Green waste"));
290 addTagDescription(m_description, QStringLiteral("recycling:garden_waste"), QStringLiteral("yes"), tr("Garden waste"));
291 addTagDescription(m_description, QStringLiteral("recycling:electrical_items"), QStringLiteral("yes"), tr("Electrical items"));
292 addTagDescription(m_description, QStringLiteral("recycling:metal"), QStringLiteral("yes"), tr("Metal"));
293 addTagDescription(m_description, QStringLiteral("recycling:mobile_phones"), QStringLiteral("yes"), tr("Mobile phones"));
294 addTagDescription(m_description, QStringLiteral("recycling:newspaper"), QStringLiteral("yes"), tr("Newspaper"));
295 addTagDescription(m_description, QStringLiteral("recycling:paint"), QStringLiteral("yes"), tr("Paint"));
296 addTagDescription(m_description, QStringLiteral("recycling:paper"), QStringLiteral("yes"), tr("Paper"));
297 addTagDescription(m_description, QStringLiteral("recycling:paper_packaging"), QStringLiteral("yes"), tr("Paper packaging"));
298 addTagDescription(m_description, QStringLiteral("recycling:PET"), QStringLiteral("yes"), tr("PET"));
299 addTagDescription(m_description, QStringLiteral("recycling:plastic"), QStringLiteral("yes"), tr("Plastic"));
300 addTagDescription(m_description, QStringLiteral("recycling:plastic_bags"), QStringLiteral("yes"), tr("Plastic bags"));
301 addTagDescription(m_description, QStringLiteral("recycling:plastic_bottles"), QStringLiteral("yes"), tr("Plastic bottles"));
302 addTagDescription(m_description, QStringLiteral("recycling:plastic_packaging"), QStringLiteral("yes"), tr("Plastic packaging"));
303 addTagDescription(m_description, QStringLiteral("recycling:polyester"), QStringLiteral("yes"), tr("Polyester"));
304 addTagDescription(m_description, QStringLiteral("recycling:tyres"), QStringLiteral("yes"), tr("Tyres"));
305 addTagDescription(m_description, QStringLiteral("recycling:waste"), QStringLiteral("yes"), tr("Waste"));
306 addTagDescription(m_description, QStringLiteral("recycling:white_goods"), QStringLiteral("yes"), tr("White goods"));
307 addTagDescription(m_description, QStringLiteral("recycling:wood"), QStringLiteral("yes"), tr("Wood"));
309 addTagDescription(m_description, QStringLiteral("volcano:status"), QStringLiteral("active"), tr("Active", "An active volcano"));
317 tr("Extinct", "A volcano considered extinct, it has not erupted within the last 10000 years and likely never will again."));
318 addTagDescription(m_description, QStringLiteral("volcano:type"), QStringLiteral("stratovolcano"), tr("Stratovolcano"));
319 addTagDescription(m_description, QStringLiteral("volcano:type"), QStringLiteral("shield"), tr("Shield volcano"));
320 addTagDescription(m_description, QStringLiteral("volcano:type"), QStringLiteral("scoria"), tr("Scoria cone", "A scoria cone volcano."));
322 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("alternative"), tr("Alternative medicine"));
323 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("audiologist"), tr("Audiologist"));
324 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("blood_bank"), tr("Blood bank"));
325 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("blood_donation"), tr("Blood donation"));
326 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("centre"), tr("Medical center"));
327 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("clinic"), tr("Clinic"));
328 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("dentist"), tr("Dentist"));
329 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("doctor"), tr("Medical practitioner"));
330 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("hospital"), tr("Hospital"));
331 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("midwife"), tr("Midwife"));
332 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("optometrist"), tr("Optometrist"));
333 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("physiotherapist"), tr("Physiotherapist"));
334 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("podiatrist"), tr("Podiatrist"));
335 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("psychotherapist"), tr("Psychotherapist"));
336 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("rehabilitation"), tr("Rehabilitation"));
337 addTagDescription(m_description, QStringLiteral("healthcare"), QStringLiteral("speech_therapist"), tr("Speech therapist"));
344 addTagValue(m_description, QStringLiteral("seats"), tr("%n seats", "number of seats a bench provides", seats));
370 int const disabledSpaces = m_placemark.osmData().tagValue(QStringLiteral("capacity:disabled")).toInt();
372 addTagValue(m_description, QStringLiteral("capacity:disabled"), tr("%1 disabled spaces", "Parking spaces"));
374 int const womenSpaces = m_placemark.osmData().tagValue(QStringLiteral("capacity:women")).toInt();
376 addTagValue(m_description, QStringLiteral("capacity:women"), tr("%1 women spaces", "Parking spaces"));
378 int const parentSpaces = m_placemark.osmData().tagValue(QStringLiteral("capacity:parent")).toInt();
380 addTagValue(m_description, QStringLiteral("capacity:parent"), tr("%1 parent and child spaces", "Parking spaces"));
382 int const electricChargers = m_placemark.osmData().tagValue(QStringLiteral("capacity:charging")).toInt();
384 addTagValue(m_description, QStringLiteral("capacity:charging"), tr("%1 spaces with electric chargers", "Parking spaces"));
400 addTagDescription(m_description, QStringLiteral("shower"), QStringLiteral("yes"), tr("Has shower", "A hut provides showers inside or aside"));
405 addTagDescription(m_description, QStringLiteral("mattress"), QStringLiteral("yes"), tr("Has mattress", "A hut provides mattress"));
406 addTagDescription(m_description, QStringLiteral("mattress"), QStringLiteral("no"), tr("Has no mattress", "A hut does not provide mattress"));
407 addTagDescription(m_description, QStringLiteral("drinking_water"), QStringLiteral("yes"), tr("Has water", "Water is available inside or aside"));
412 addTagDescription(m_description, QStringLiteral("toilets"), QStringLiteral("yes"), tr("Has toilets", "A hut provides toilets"));
413 addTagDescription(m_description, QStringLiteral("toilets"), QStringLiteral("no"), tr("Has no toilets", "A hut does not provide toilets"));
414 addTagDescription(m_description, QStringLiteral("reservation"), QStringLiteral("yes"), tr("Reservation is possible"));
415 addTagDescription(m_description, QStringLiteral("reservation"), QStringLiteral("no"), tr("No reservation possible"));
416 addTagDescription(m_description, QStringLiteral("reservation"), QStringLiteral("required"), tr("Reservation is required"));
424 tr("Only for members", "Reservation is only possible for members of the organisation running the hut"));
432 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("cee_blue"), tr("%1 blue CEE sockets"));
433 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("cee_red_16a"), tr("%1 red CEE sockets (16 A)"));
434 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("cee_red_32a"), tr("%1 red CEE sockets (32 A)"));
435 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("cee_red_64a"), tr("%1 red CEE sockets (64 A)"));
436 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("cee_red_125a"), tr("%1 red CEE sockets (125 A)"));
437 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("nema_5_15"), tr("%1 NEMA-5-15P plugs"));
438 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("typeb"), tr("%1 NEMA-5-15P plugs"));
439 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("nema_5_20"), tr("%1 NEMA-5-20P plugs"));
440 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("nema_14_30"), tr("%1 NEMA 14-30 sockets"));
441 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("nema_14_50"), tr("%1 NEMA 14-50 sockets"));
442 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("schuko"), tr("%1 Schuko sockets"));
443 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("bs1363"), tr("%1 BS 1363 sockets"));
444 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("type1"), tr("%1 Type 1 plugs"));
445 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("type1_combo"), tr("%1 Type 1 combo plugs"));
446 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("type2"), tr("%1 Type 2 sockets"));
447 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("type2_combo"), tr("%1 Type 2 combo sockets"));
448 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("type3"), tr("%1 Type 3 sockets"));
449 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("chademo"), tr("%1 CHAdeMO plugs"));
450 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("magne_charge"), tr("%1 Magne Charge plugs"));
451 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("tesla_standard"), tr("%1 Tesla standard plugs"));
452 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("tesla_supercharger"), tr("%1 Tesla standard plugs (Supercharger)"));
453 addTagDescription(m_description, QStringLiteral("socket"), QStringLiteral("tesla_roadster"), tr("%1 Tesla roadster plugs"));
458 addTagDescription(m_description, QStringLiteral("self_service"), QStringLiteral("yes"), tr("Self-service"));
459 addTagDescription(m_description, QStringLiteral("self_service"), QStringLiteral("no"), tr("No self-service"));
460 addTagDescription(m_description, QStringLiteral("automated"), QStringLiteral("yes"), tr("Automated"));
461 addTagDescription(m_description, QStringLiteral("automated"), QStringLiteral("no"), tr("Manual"));
463 addTagDescription(m_description, QStringLiteral("social_facility"), QStringLiteral("group_home"), tr("Group home"));
464 addTagDescription(m_description, QStringLiteral("social_facility"), QStringLiteral("nursing_home"), tr("Nursing home"));
469 addTagDescription(m_description, QStringLiteral("social_facility"), QStringLiteral("day_care"), tr("Nursing services on a daily basis"));
470 addTagDescription(m_description, QStringLiteral("social_facility"), QStringLiteral("shelter"), tr("Shelter"));
471 addTagDescription(m_description, QStringLiteral("social_facility"), QStringLiteral("ambulatory_care"), tr("Ambulatory care"));
472 addTagDescription(m_description, QStringLiteral("social_facility"), QStringLiteral("outreach"), tr("Social welfare services"));
490 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("abused"), tr("For abused"));
491 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("child"), tr("For children"));
492 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("disabled"), tr("For people with physical disabilities"));
493 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("diseased"), tr("For those who suffer of a disease"));
494 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("drug_addicted"), tr("For drug-addicted"));
495 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("homeless"), tr("For homeless"));
496 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("juvenile"), tr("For juvenile"));
501 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("migrant"), tr("For migrants"));
502 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("orphan"), tr("For orphans"));
503 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("senior"), tr("For elder people"));
504 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("underprivileged"), tr("For poor or disadvantaged people"));
505 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("unemployed"), tr("For unemployed"));
506 addTagDescription(m_description, QStringLiteral("social_facility:for"), QStringLiteral("victim"), tr("For victims of crimes"));
509 } else if (category >= GeoDataPlacemark::AerialwayCableCar && category <= GeoDataPlacemark::AerialwayGoods) {
522 addTagDescription(m_description, QStringLiteral("heating"), QStringLiteral("yes"), tr("Is heated", "A carriage is heated"));
523 addTagDescription(m_description, QStringLiteral("heating"), QStringLiteral("no"), tr("Not heated", "A carriage is not heated"));
536 } else if (category >= GeoDataPlacemark::PisteDownhill && category <= GeoDataPlacemark::PisteSkiJump) {
537 addTagDescription(m_description, QStringLiteral("lit"), QStringLiteral("yes"), tr("Lit at night"));
538 addTagDescription(m_description, QStringLiteral("piste:lit"), QStringLiteral("yes"), tr("Lit in winter"));
539 addTagDescription(m_description, QStringLiteral("gladed"), QStringLiteral("yes"), tr("Contains trees", "A ski piste with trees (gladed)"));
540 addTagDescription(m_description, QStringLiteral("patrolled"), QStringLiteral("no"), tr("Not patrolled"));
546 addTagDescription(m_description, QStringLiteral("piste:grooming"), QStringLiteral("mogul"), tr("Mogul piste"));
547 addTagDescription(m_description, QStringLiteral("piste:grooming"), QStringLiteral("skating"), tr("Groomed for free style or skating"));
556 addTagDescription(m_description, QStringLiteral("piste:grooming"), QStringLiteral("scooter"), tr("Groomed by a smaller snowmobile"));
557 addTagDescription(m_description, QStringLiteral("piste:grooming"), QStringLiteral("backcountry"), tr("Unmarked piste (backcountry touring)"));
560 if (category == GeoDataPlacemark::TransportBicycleParking || category == GeoDataPlacemark::TransportMotorcycleParking) {
561 addTagDescription(m_description, QStringLiteral("covered"), QStringLiteral("yes"), tr("Is covered", "A parking space is covered"));
562 addTagDescription(m_description, QStringLiteral("covered"), QStringLiteral("no"), tr("Not covered", "A parking space is not covered"));
565 if (category == GeoDataPlacemark::AmenityRecycling || category == GeoDataPlacemark::AmenityPostBox) {
566 addTagValue(m_description, QStringLiteral("collection_times"), tr("Collection times %1"), QStringLiteral(", "));
570 addTagDescription(m_description, QStringLiteral("aerialway:access"), QStringLiteral("entry"), tr("Entry", "Entry station of an aerialway"));
571 addTagDescription(m_description, QStringLiteral("aerialway:access"), QStringLiteral("exit"), tr("Exit", "Exit station of an aerialway"));
602 addTagDescription(m_description, QStringLiteral("access"), QStringLiteral("customers"), tr("Customers only"));
606 tr("Accessible by anyone", "The public has an official, legally-enshrined right of access; i.e., it's a right of way"));
614 tr("Open to general traffic", "Open to general traffic but permission can be revoked by the owner"));
615 addTagDescription(m_description, QStringLiteral("access"), QStringLiteral("no"), tr("No access", "No access for the general public"));
627 addTagDescription(m_description, QStringLiteral("level"), QStringLiteral("2"), tr("Floor 2", "Floor level 2, two levels above ground level"));
628 addTagDescription(m_description, QStringLiteral("level"), QStringLiteral("1"), tr("Floor 1", "Floor level 1, one level above ground level"));
629 addTagDescription(m_description, QStringLiteral("level"), QStringLiteral("0"), tr("Ground floor", "Floor level 0"));
630 addTagDescription(m_description, QStringLiteral("level"), QStringLiteral("-1"), tr("Basement 1", "Floor level -1, one level below ground level"));
631 addTagDescription(m_description, QStringLiteral("level"), QStringLiteral("-2"), tr("Basement 2", "Floor level -2, two levels below ground level"));
651 auto const tags = QStringList() << QStringLiteral("website") << QStringLiteral("contact:website") << QStringLiteral("facebook")
683 if (wikipedia.startsWith(QLatin1StringView("http://")) || wikipedia.startsWith(QLatin1StringView("https://"))) {
695 m_wikipedia = QLatin1StringView("https://") + lang + QLatin1StringView(".wikipedia.org/wiki/") + title;
722 addTagDescription(m_wheelchairInfo, QStringLiteral("wheelchair"), QStringLiteral("yes"), tr("Wheelchair accessible"));
723 addTagDescription(m_wheelchairInfo, QStringLiteral("wheelchair"), QStringLiteral("no"), tr("Wheelchair inaccessible"));
724 addTagDescription(m_wheelchairInfo, QStringLiteral("wheelchair"), QStringLiteral("limited"), tr("Limited wheelchair accessibility"));
725 addTagDescription(m_wheelchairInfo, QStringLiteral("wheelchair"), QStringLiteral("designated"), tr("Designated wheelchair access"));
762 tr("Public Internet access available", "This location provides an unknown type of public Internet access."));
768 tr("Charged public wifi available", "Public wireless Internet access is available here for a fee."));
773 tr("Free public wifi available", "Public wireless Internet access is available here for no cost."));
782 addTagDescription(m_wifiAvailable, QStringLiteral("wifi"), QStringLiteral("no"), tr("No public wifi", "Public wifi is not available here."));
836bool Placemark::addTagValue(QString &target, const QString &key, const QString &format, const QString &separator) const
858void Placemark::addTagDescription(QString &target, const QString &key, const QString &value, const QString &description) const
897 : tr("%1 %2", "House number (first argument) and street name (second argument) in an address").arg(houseNumber).arg(street).trimmed();
904 for (auto iter = m_placemark.osmData().tagsBegin(), end = m_placemark.osmData().tagsEnd(); iter != end; ++iter) {
911 if (const auto document = (placemark.parent() ? geodata_cast<GeoDataDocument>(placemark.parent()) : nullptr)) {
923 auto const isRoute = relation->osmData().tagValue(QStringLiteral("type")) == QStringLiteral("route");
931 if (relevantRelations.contains(relation) && relation->osmData().containsTag(QStringLiteral("type"), QStringLiteral("public_transport"))
932 && relation->osmData().containsTag(QStringLiteral("public_transport"), QStringLiteral("stop_area"))) {
933 for (auto iter = relation->osmData().relationReferencesBegin(), end = relation->osmData().relationReferencesEnd(); iter != end;
QString toString() const
return a string representation of the coordinate this is a convenience function which uses the defaul...
Definition GeoDataCoordinates.cpp:379
const GeoDataObject * parent() const
Provides the parent of the object in GeoDataContainers.
Definition GeoDataObject.cpp:61
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:47
GeoDataVisualCategory visualCategory() const
Return the symbol index of the placemark.
Definition GeoDataPlacemark.cpp:125
QString categoryName() const
Definition GeoDataPlacemark.cpp:295
OsmPlacemarkData & osmData()
Quick, safe accessor to the placemark's OsmPlacemarkData stored within it's ExtendedData.
Definition GeoDataPlacemark.cpp:161
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=nullptr) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates.
Definition GeoDataPlacemark.cpp:206
QString displayName() const
displays the name of a place in the locale language of the user
Definition GeoDataPlacemark.cpp:275
QHash< QString, QString >::const_iterator tagsBegin() const
iterators for the tags hash.
Definition OsmPlacemarkData.cpp:153
QString tagValue(const QString &key) const
tagValue returns the value of the tag that has key as key or an empty qstring if there is no such tag
Definition OsmPlacemarkData.cpp:122
KCOREADDONS_EXPORT Result match(QStringView pattern, QStringView str)
PostalAddress address(const QVariant &location)
QStringView level(QStringView ifopt)
Category category(StandardShortcut id)
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
T * geodata_cast(GeoDataObject *node)
Returns the given node cast to type T if the node was instantiated as type T; otherwise returns 0.
Definition GeoDataObject.h:103
void clear()
QLocale system()
QStringList uiLanguages() const const
Q_EMITQ_EMIT
QString tr(const char *sourceText, const char *disambiguation, int n)
bool contains(const QSet< T > &other) const const
QString arg(Args &&... args) const const
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
QString repeated(qsizetype times) const const
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
int toInt(bool *ok, int base) const const
QString trimmed() const const
QStringView mid(qsizetype start, qsizetype length) const const
int toInt(bool *ok, int base) const const
bool isValid() const const
QString scheme() const const
QByteArray toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.