41 * @param[in] aMapTilePath Path where the maptile image staroed |
41 * @param[in] aMapTilePath Path where the maptile image staroed |
42 * |
42 * |
43 */ |
43 */ |
44 virtual void MapTilefetchingCompleted( TInt aErrCode,const TDesC& aMapTilePath ) = 0; |
44 virtual void MapTilefetchingCompleted( TInt aErrCode,const TDesC& aMapTilePath ) = 0; |
45 |
45 |
46 /** Informs once geocoding completed |
46 /** Informs once geo coordinates retrived from the REST server |
47 * |
47 * |
48 * @param[in] aLatitude converted latitude value |
48 * @param[in] aErrCode Error code |
49 * @param[in] aLongitude converted longitude value |
49 * @param[in] aMapTilePath Path where the maptile image staroed |
50 * |
50 * |
51 */ |
51 */ |
52 virtual void RestGeoCodeCompleted( TReal aLatitude,TReal aLongitude ) = 0; |
52 virtual void GeoCodefetchingCompleted( TInt aErrCode, const TReal& aLatitude, |
|
53 const TReal& aLongitude, const TDesC& aMapTilePath ) = 0; |
|
54 |
|
55 |
53 |
56 |
54 }; |
57 }; |
55 |
58 |
56 |
59 |
57 |
60 |
68 * Factory method |
71 * Factory method |
69 */ |
72 */ |
70 static CMapTileInterface* NewL(); |
73 static CMapTileInterface* NewL(); |
71 |
74 |
72 /** |
75 /** |
73 * Interface for requesting maptile image for a landmark object |
76 * Interface for requesting GEO fields a landmark object containing address |
74 * |
77 * |
75 * @param[in] aLandmark Landmark containing address details |
78 * @param[in] aLandmark Landmark containing address details |
76 * @param[in] aFilePath Path where the maptile image to be stored |
79 * @param[in] aFilePath Path where the maptile image to be stored |
77 * @param[in] aObserver Observer for callback notification |
80 * @param[in] aObserver Observer for callback notification |
|
81 * |
78 */ |
82 */ |
79 void GetMapTileImageL( CPosLandmark* aLandmark , |
83 void GetGeoCodeFromAddressL( CPosLandmark* aLandmark , |
80 const TDesC& aFilePath, MMapTileObserver* aObserver ); |
84 const TDesC& aFilePath, MMapTileObserver* aObserver ); |
81 |
85 |
82 /** |
86 /** |
83 * Interface for requesting maptile image for a landmark object |
87 * Interface for requesting GEO fields for the address |
84 * |
88 * |
85 * @param[in] aAddressDetails containing address details |
89 * @param[in] aAddressDetails containing address details |
86 * @param[in] aFilePath Path where the maptile image to be stored |
90 * @param[in] aFilePath Path where the maptile image to be stored |
87 * @param[in] aObserver Observer for callback notification |
91 * @param[in] aObserver Observer for callback notification |
88 */ |
92 */ |
89 void GetMapTileImageL(const TDesC& aAddressDetails, |
93 void GetGeoCodeFromAddressL(const TDesC& aAddressDetails, |
90 const TDesC& aFilePath, MMapTileObserver* aObserver); |
94 const TDesC& aFilePath, MMapTileObserver* aObserver); |
91 |
95 |
92 /** |
96 /** |
93 * Interface for requesting for a landmark object. |
97 * Interface for requesting for a landmark object. |
94 * @return CPosLandmark object. |
98 * @return CPosLandmark object. |
103 |
107 |
104 /** |
108 /** |
105 * Destructor |
109 * Destructor |
106 */ |
110 */ |
107 ~CMapTileInterface(); |
111 ~CMapTileInterface(); |
|
112 |
|
113 /** |
|
114 * Function for Retrieving maptile |
|
115 */ |
|
116 void GetMapTileL( const TReal& aLatitude, const TReal& aLongitude ); |
108 |
117 |
109 private: |
118 private: |
110 |
119 |
111 /** |
120 /** |
112 * Function for Retrieving latitude & longitude information |
121 * Converts geocoordinates to maptile pixel coordinate and update the |
113 * |
122 * image saving file path to MaptileFolder\RowCol.png |
114 * @param[in] aLatitude latitude value |
123 */ |
115 * @param[in] aLongitude Longitude value |
124 void UpdateFilePathL( const TReal& aLatitude, const TReal& aLongitude ); |
116 */ |
|
117 void GetMapTileL( TReal aLatitude, TReal aLongitude ); |
|
118 |
125 |
119 /** |
126 /** |
120 * Interface for requesting for a landmark object. |
127 * Interface for requesting for a landmark object. |
121 * @param[in] aAddressInfo , geo-code address details |
128 * @param[in] aAddressInfo , geo-code address details |
122 */ |
129 */ |