The Location Data Type The Location Data Type

The Location Data Type

Ismaen Aboubakare Ismaen Aboubakare

The Location Data Type is used to refer to a specific location. The Location Data type is important when leveraging Maps within an application or the Place Search input control. In order to use the Location Data Type, a Place object has to be created in AirData first, as the Location Data Type does not come created out of the box. Locations can be used for pin pointing a specific address, getting the latitude and longitude of a location, or getting a user's current location

The Location Data Type has the following properties:


The latitude value of a location. 


The longitude value of a location


String that contains a friendly readable address of the particular place. Typically referred to as a postal address. 


Parsed output of the formatted address, consisting of the address, city, state, zip, and country. Can be used to get specific address fields. 


Unique ID of the specific location in the Google Places database. See the Place IDs documentation for more detail.  


The name for the specific location. For example if the address is matched to a park, then the park name will surface under the name property. (4 Jersey St, Boston, MA 02215 -> Fenway Park)  


URL of a recommended icon which can be displayed to the user. See Place icons for more detail.