libosmscout  1.1.1
Public Types | Public Member Functions | Properties | List of all members
osmscout::LocationEntry Class Reference

#include <libosmscout-client-qt/include/osmscout/LocationEntry.h>

Inheritance diagram for osmscout::LocationEntry:
Inheritance graph
[legend]
Collaboration diagram for osmscout::LocationEntry:
Collaboration graph
[legend]

Public Types

enum  Type { typeNone, typeObject, typeCoordinate }
 

Public Member Functions

 LocationEntry (Type type, const QString &label, const QString &objectType, const QStringList &adminRegionList, const QString database, const osmscout::GeoCoord coord, const osmscout::GeoBox bbox, QObject *parent=nullptr)
 
 LocationEntry (const QString &label, const osmscout::GeoCoord &coord, QObject *parent=nullptr)
 
 LocationEntry (QObject *parent=nullptr)
 
 LocationEntry (const LocationEntry &other)
 
 ~LocationEntry () override=default
 
void operator= (const LocationEntry &)
 
void addReference (const osmscout::ObjectFileRef reference)
 
void mergeWith (const LocationEntry &location)
 
Q_INVOKABLE double distanceTo (double lat, double lon) const
 
Type getType () const
 
QString getTypeString () const
 
QString getObjectType () const
 
QString getLabel () const
 
QStringList getAdminRegionList () const
 
QString getDatabase () const
 
osmscout::GeoCoord getCoord () const
 
osmscout::GeoBox getBBox () const
 
const QList< osmscout::ObjectFileRef > & getReferences () const
 
double getLat () const
 
double getLon () const
 

Properties

QString label
 
QString type
 
QString objectType
 
double lat
 
double lon
 

Detailed Description

Qt abstraction for various objects on map, used for search and routing

Member Enumeration Documentation

◆ Type

Enumerator
typeNone 
typeObject 
typeCoordinate 

Constructor & Destructor Documentation

◆ LocationEntry() [1/4]

osmscout::LocationEntry::LocationEntry ( Type  type,
const QString &  label,
const QString &  objectType,
const QStringList &  adminRegionList,
const QString  database,
const osmscout::GeoCoord  coord,
const osmscout::GeoBox  bbox,
QObject *  parent = nullptr 
)

◆ LocationEntry() [2/4]

osmscout::LocationEntry::LocationEntry ( const QString &  label,
const osmscout::GeoCoord &  coord,
QObject *  parent = nullptr 
)

◆ LocationEntry() [3/4]

osmscout::LocationEntry::LocationEntry ( QObject *  parent = nullptr)
explicit

◆ LocationEntry() [4/4]

osmscout::LocationEntry::LocationEntry ( const LocationEntry other)

copy constructor, note that it copy Qt ownership

Parameters
other

◆ ~LocationEntry()

osmscout::LocationEntry::~LocationEntry ( )
overridedefault

Member Function Documentation

◆ addReference()

void osmscout::LocationEntry::addReference ( const osmscout::ObjectFileRef  reference)

◆ distanceTo()

Q_INVOKABLE double osmscout::LocationEntry::distanceTo ( double  lat,
double  lon 
) const

◆ getAdminRegionList()

QStringList osmscout::LocationEntry::getAdminRegionList ( ) const

◆ getBBox()

osmscout::GeoBox osmscout::LocationEntry::getBBox ( ) const

◆ getCoord()

osmscout::GeoCoord osmscout::LocationEntry::getCoord ( ) const

◆ getDatabase()

QString osmscout::LocationEntry::getDatabase ( ) const

◆ getLabel()

QString osmscout::LocationEntry::getLabel ( ) const

◆ getLat()

double osmscout::LocationEntry::getLat ( ) const

◆ getLon()

double osmscout::LocationEntry::getLon ( ) const

◆ getObjectType()

QString osmscout::LocationEntry::getObjectType ( ) const

◆ getReferences()

const QList<osmscout::ObjectFileRef>& osmscout::LocationEntry::getReferences ( ) const

◆ getType()

Type osmscout::LocationEntry::getType ( ) const

◆ getTypeString()

QString osmscout::LocationEntry::getTypeString ( ) const

◆ mergeWith()

void osmscout::LocationEntry::mergeWith ( const LocationEntry location)

◆ operator=()

void osmscout::LocationEntry::operator= ( const LocationEntry )

Property Documentation

◆ label

QString osmscout::LocationEntry::label
read

◆ lat

double osmscout::LocationEntry::lat
read

◆ lon

double osmscout::LocationEntry::lon
read

◆ objectType

QString osmscout::LocationEntry::objectType
read

◆ type

QString osmscout::LocationEntry::type
read

The documentation for this class was generated from the following file: