8#include "datatypes_impl.h"
9#include "datatypes_p.h"
10#include "locationutil.h"
22 float longitude = NAN;
26KITINERARY_MAKE_PROPERTY(
GeoCoordinates,
float, latitude, setLatitude)
27KITINERARY_MAKE_PROPERTY(
GeoCoordinates,
float, longitude, setLongitude)
30GeoCoordinates::GeoCoordinates(
float latitude,
float longitude) :
31 d(*s_GeoCoordinates_shared_null())
34 d->latitude = latitude;
35 d->longitude = longitude;
38bool GeoCoordinates::isValid()
const
40 return !std::isnan(d->latitude) && !std::isnan(d->longitude);
63 return d->streetAddress.
isEmpty() && d->addressLocality.isEmpty()
64 && d->postalCode.isEmpty() && d->addressRegion.isEmpty()
65 && d->addressCountry.isEmpty();
71 KITINERARY_PRIVATE_BASE_GADGET(
Place)
80KITINERARY_MAKE_CLASS(
Place)
84KITINERARY_MAKE_PROPERTY(
Place,
QString, telephone, setTelephone)
85KITINERARY_MAKE_PROPERTY(
Place,
QString, identifier, setIdentifier)
86KITINERARY_MAKE_OPERATOR(
Place)
94class AirportPrivate :
public PlacePrivate
96 KITINERARY_PRIVATE_GADGET(
Airport)
103KITINERARY_MAKE_OPERATOR(
Airport)
105class BoatTerminalPrivate :
public PlacePrivate
112class TrainStationPrivate :
public PlacePrivate
119class BusStationPrivate :
public PlacePrivate
126class TouristAttractionPrivate:
public PlacePrivate
141#include "moc_place.cpp"
QUrl geoUri(const QVariant &location)
Returns a geo: URI for the given location.
Classes for reservation/travel data models, data extraction and data augmentation.
bool isEmpty() const const