2 * Copyright (C) 2013 HERE Global B.V. All rights reserved.
3 * This software, including documentation, is protected by copyright controlled by
4 * HERE Global B.V. (“Software”). All rights are reserved. Copying, including reproducing,
5 * storing, adapting or translating, any or all of this material requires the prior
6 * written consent of HERE Global B.V. You may use this
7 * Software in accordance with the terms and conditions defined in the
8 * HERE Location Platform Services Terms and Conditions, available at
9 * http://developer.here.com/terms-conditions-base
11 * As an additional permission to the above, you may distribute Software,
12 * in object code format as part of an Application, according to, and subject to, terms and
13 * conditions defined in the Tizen Software Development kit (“SDK”) License Agreement.
14 * You may distribute such object code format Application under terms of your choice,
15 * provided that the header and source files of the Software have not been modified.
21 #include "HereMaps_global.h"
23 HERE_MAPS_BEGIN_NAMESPACE
26 * This class encapsulates a street address. It is used both in geocoding
27 * requests and in responses received from the server.
30 class EXPORT_API Address
35 * This is the default constructor.
40 * This method is the copy constructor.
42 * @param rRhs A constant reference to an <code>Address</code> object to
45 Address(const Address& rRhs);
48 * This method is the destructor.
53 * This is the assignment operator.
55 * @param rRhs A constant reference to an <code>Address</code> object to
58 * @return A reference to the given instance of <code>Address</code> whose
59 * contents now mirror those of the object supplied by the caller.
61 Address& operator=(const Address& rRhs);
64 * This method sets the name of the country.
66 * @param sCountry A constant reference to a string containing the name of
69 void SetCountry(const String& sCountry);
72 * This method retrieves the country code.
74 * @return A constant reference to a string containing the country code.
76 const String& GetCountryCode() const;
79 * This method sets the country code.
81 * @param sCountryCode A constant reference to a string containing the
84 void SetCountryCode(const String& sCountryCode);
87 * This method retrieves the name of the country.
89 * @return A constant reference to a string containing the name of
92 const String& GetCountry() const;
95 * This method sets the name of the county.
97 * @param sCounty A constant reference to a string containing the name of
100 void SetCounty(const String& sCounty);
103 * This method retrieves the name of the county.
105 * @return A constant reference to a string containing the name of
108 const String& GetCounty() const;
111 * This method sets the address label.
113 * @param sLabel A constant reference to a string containing the label.
115 void SetLabel(const String& sLabel);
118 * This method retrieves the address label.
120 * @return A constant reference to a string containing the label.
122 const String& GetLabel() const;
125 * This method sets the identifier of the state. State corresponds to a state
126 * in the USA or Bundesland in Germany.
128 * @param sState A constant reference to a string containing the name or the
129 * abbreviation of the name of the state.
131 void SetState(const String& sState);
134 * This method retrieves the identifier the state. State corresponds to a
135 * state in the USA or Bundesland in Germany.
137 * @return A constant reference to a string containing the identifier of the
140 const String& GetState() const;
143 * This method sets the name of the city.
145 * @param sCity A constant reference to a string containing the name of the
148 void SetCity(const String& sCity);
151 * This method retrieves the name of the city.
153 * @return A constant reference to a string containing the name of the
156 const String& GetCity() const;
159 * This method sets the name of the district. A district corresponds either to
160 * an administrative area within a city or a neighborhood, for example "Greenwich
161 * Village", "Kreuzberg" (in Berlin).
163 * @param sDistrict A constant reference to a string containing the name of the
166 void SetDistrict(const String& sDistrict);
169 * This method retrieves the name of the district. A district corresponds
170 * either to an administrative area within a city or a neighborhood, for
171 * example "Greenwich Village", "Kreuzberg" (in Berlin).
173 * @return A constant reference to a string containing the name of the
176 const String& GetDistrict() const;
179 * This method sets the street name.
181 * @param sStreet A constant reference to a string containing the name of the
184 void SetStreet(const String& sStreet);
187 * This method retrieves the street name.
189 * @return A constant reference to a string containing the name of the
192 const String& GetStreet() const;
195 * This method sets the house number (or house name if appropriate).
197 * @param sHouseNumber A constant reference to a string containing the
198 * house number (or the house name if appropriate).
200 void SetHouseNumber(const String& sHouseNumber);
203 * This method retrieves the house number (or house name if appropriate).
205 * @return A constant reference to a string containing the
206 * house number (or the house name if appropriate).
208 const String& GetHouseNumber() const;
211 * This method sets the post code.
213 * @param sPostalCode A constant reference to a string containing the post
216 void SetPostalCode(const String& sPostalCode);
219 * This method retrieves the post code.
221 * @return A constant reference to a string containing the post
224 const String& GetPostalCode() const;
227 * This method sets the identifier of the floor (within a building).
229 * @param sFloor A constant reference to a string containing the identifier
232 void SetFloor(const String& sFloor);
235 * This method retrieves the identifier of the floor (within a building).
237 * @return A constant reference to a string containing the identifier
240 const String& GetFloor() const;
243 * This method sets the identifier of suite (within a building).
245 * @param sSuite A constant reference to a string containing the identifier
248 void SetSuite(const String& sSuite);
251 * This method retrieves the identifier of suite (within a building).
253 * @return A constant reference to a string containing the identifier
256 const String& GetSuite() const;
259 * This method associates an adidtional data item with the given address.
261 * @param sKey A constant reference to a string containing the key
262 * that identifies the data item (in a map of additional data items).
264 * @param sValue A constant reference to a string containing the value of
265 * the data item identified by <code>sKey</code>.
267 void AddAdditionalData(const String& sKey, const String& sValue);
270 * This method retrieves the value of an additional address data item on the
271 * basis of a key provided by the caller.
273 * @param sKey A constant reference to a string containing the key
274 * that identifies the data item to retrieve.
276 const String* GetAdditionalDataValue(const String& sKey) const;
279 * This method retrieves a value indicating how many additional address data
280 * items have been associated with the given instance of
281 * <code>Address</code>.
283 * @return An integer indicating the number of additional data items that
284 * are associated with the given instance of <code>Address</code>.
286 size_t GetNumAdditionalDataEntries() const;
289 * This method retrieves the key of the additional data item at the index
290 * specified by the caller.
292 * @param idx An integer value specifying the index of the additional address
293 * data item whose key is to be retrieved.
295 * @return A constant pointer to a string containing the key
296 * for an additional address data item.
298 const String* GetAdditionalDataKey(size_t idx) const;
302 AddressImpl* m_pImpl;
305 HERE_MAPS_END_NAMESPACE