Fields
The first argument to the Geocode function is the desired field, which must be one of the following:
(the sample values come from different places)
Field name | Sample value |
administrative_area_level_1 political | England |
administrative_area_level_2 political | Greater London |
administrative_area_level_3 political | Westminster |
airport establishment transit_station | |
bus_station transit_station | |
coordinates | 51.5081024,-0.1399735 |
country political | United Kingdom |
establishment | John F. Kennedy International Airport |
formatted_address | 1 Old Bond St, Westminster, London W1S 4, UK |
latitude | 51.5081024 |
locality political | London |
location_type | RANGE_INTERPOLATED |
longitude | -0.1399735 |
natural_feature | Mt Everest |
neighborhood political | Greenpoint |
partial_match | TRUE |
point_of_interest establishment | Heathrow Airport |
postal_code | 76706 |
postal_code_prefix postal_code | W1S 4 |
postal_town | Greenwich |
premise | 45 |
route | Old Bond St |
status | OK |
street_address | |
street_number | 1 |
sublocality political | Queens |
subpremise | 27 |
train_station transit_station | |
types | street_address |
viewpointne | 51.5112464,-0.1368337 |
viewpointsw | 51.5049511,-0.1431289 |
Notes:
- The field names themselves are retrieved from GoogleMaps and may change.
- The ‘coordinates’ field string value is built by concatenating the latitude and longitude, using the list separator of the current Window’s culture (the above example would display 51,5081024;-0,1399735 on a French PC by default).
- The fields above are usually displayed in this order but this is not guaranteed.
- This is not an exhaustive list. Other fields may appear according to the information available about a place.
- When new fields appear, they are usually added at the end but this is not guaranteed.