2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef _LOCATION_HERE_REV_GEOCODER_H_
18 #define _LOCATION_HERE_REV_GEOCODER_H_
21 #include "here_manager.h"
23 #include <maps_coordinates.h>
26 #include <geocoder/ReverseGeoCoderQuery.h>
27 #include <geocoder/GeoCoderQueryListener.h>
28 #include <geocoder/GeoCoderReply.h>
29 #include <geocoder/Result.h>
30 #include <common/GeoLocation.h>
31 #include <common/Address.h>
33 HERE_PLUGIN_BEGIN_NAMESPACE
35 using namespace HERE_MAPS_NAMESPACE_PREFIX;
39 , public GeoCoderQueryListener
43 *This is the default constructor for reverse Geocoder.
46 HereRevGeocode(void *pCbFunc, void *pUserData, int nReqId);
49 *This is the default destructor for reverse Geocoder.
55 here_error_e PrepareQuery();
56 here_error_e PreparePreference(maps_preference_h hPref);
57 here_error_e PreparePosition(double dLat, double dLng);
59 here_error_e StartRevGeocode(maps_item_hashtable_h hPref);
61 virtual void OnGeoCoderReply(const GeoCoderReply& Reply);
64 ReverseGeoCoderQuery* m_pQuery;
65 GeoCoordinates m_geoCoord;
68 HERE_PLUGIN_END_NAMESPACE
70 #endif //_LOCATION_HERE_REV_GEOCODER_H_