• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • examples
  • cpp
  • reverse-geocoding
examples/cpp/reverse-geocoding/main.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2012 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #include <QApplication>
12 #include <QDebug>
13 
14 #include <marble/MarbleWidget.h>
15 #include <marble/MarbleModel.h>
16 #include <marble/ReverseGeocodingRunnerManager.h>
17 #include <GeoDataPlacemark.h>
18 
19 using namespace Marble;
20 
21 int main(int argc, char** argv)
22 {
23  QApplication app( argc, argv );
24 
25  MarbleModel model;
26  ReverseGeocodingRunnerManager manager( &model );
27 
28  GeoDataCoordinates position( -0.15845, 51.52380, 0.0, GeoDataCoordinates::Degree );
29  qDebug() << position.toString() << "is" << manager.searchReverseGeocoding( position );
30 }
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
MarbleModel.h
This file contains the headers for MarbleModel.
Marble::GeoDataCoordinates::Degree
Definition: GeoDataCoordinates.h:66
main
int main(int argc, char **argv)
Definition: examples/cpp/reverse-geocoding/main.cpp:21
Marble::ReverseGeocodingRunnerManager
Definition: ReverseGeocodingRunnerManager.h:30
ReverseGeocodingRunnerManager.h
GeoDataPlacemark.h
Marble::ReverseGeocodingRunnerManager::searchReverseGeocoding
QString searchReverseGeocoding(const GeoDataCoordinates &coordinates, int timeout=30000)
Definition: ReverseGeocodingRunnerManager.cpp:145
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
Marble::GeoDataCoordinates::toString
QString toString() const
return a string representation of the coordinate this is a convenience function which uses the defaul...
Definition: GeoDataCoordinates.cpp:921
MarbleWidget.h
This file contains the headers for MarbleWidget.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal