4 #include "location_p.h"
8 #include <QNetworkAccessManager>
9 #include <QNetworkReply>
10 #include <QGeoPositionInfo>
15 class Location : public QObject
20 Location( QString x, QString y );
21 Location( const QGeoPositionInfo &positionInfo );
22 Location( const Location &from );
23 Location &operator=( const Location &from );
35 void resolveAddress( QString address );
41 void replyFinished( QNetworkReply * reply );
45 QNetworkAccessManager *manager;
54 * Transformes WGS84 longitude/latitude coordinates to KKJ x/y coordinates.
55 * @param longitude the input longitude in degrees
56 * @param latitude the input latitude in degrees
57 * @param outX the result x (easting)
58 * @param outY the result y (northing)
60 void WGS84lola_to_KKJxy(double longitude, double latitude, KKJ *outX, KKJ *outY);
63 * Transformes KKJ x/y coordinates to WGS84 longitude/latitude coordinates.
64 * @param x the input x (easting)
65 * @param y the input y (northing)
66 * @param outLongitude the result longitude in degrees
67 * @param outLatitude the result latitude in degrees
69 void KKJxy_to_WGS84lola(KKJ x, KKJ y, double *outLongitude, double *outLatitude);
72 double radians(double deg);
75 double degrees(double rad);
78 // Longitude0 and Center meridian of KKJ bands
79 static const double KkjZoneInfo[][2];
81 // Function: KKJ_Zone_I
82 int KKJ_Zone_I(KKJ easting);
84 // Function: KKJ_Zone_Lo
85 int KKJ_Zone_Lo(double kkjlo);
87 // Function: KKJlalo_to_WGS84lalo
88 void KKJlola_to_WGS84lola(double kkjlo, double kkjla, double *outLongitude, double *outLatitude);
90 // Function: WGS84lalo_to_KKJlalo
91 void WGS84lola_to_KKJlola(double longitude, double latitude, double *outLongitude, double *outLatitude);
93 // Function: KKJlalo_to_KKJxy
94 void KKJlola_to_KKJxy(double lon, double lat, int zoneNumber, KKJ *outX, KKJ *outY);
96 // Function: KKJxy_to_KKJlalo
97 void KKJxy_to_KKJlola(KKJ x, KKJ y, double *outLongitude, double *outLatitude);