Contents |
A location service translates from a name to coordinates. There are different types of geometry services, either file based of server based. Also there are some provided by Qlik by default.
The default location service is a server based service with a great number of points and areas for various named features. Typically for countries, states, other regions, cities, postal codes etc. Where there are well established codes, for instance for countries, both the code or the name can be used. There are also names in multiple languages for many features. The default point service is available at:
The default area service is available at:
The format that a name should be specified at is:
Where:
The type may as an alternative be specified directly after name instead of last if that is more convenient.
Type names are ordered hierarchically and a star (*) can be used last in the type to match multiple types. Here is a short description of available types:
Type group | Name | Description | Useful types |
---|---|---|---|
A* | Administrative area | countries, states, regions etc |
|
P* | Populated place | city, village etc |
|
XCISO2 | 2 character ISO country code | ||
XCISO3 | 3 character ISO country code | ||
XPC | Postal code | full or aggregated postal area | |
XIATA | IATA Airport code | ||
XICAO | ICAO Airport code | ||
XFAAC | FAAC Airport code | ||
L* | Land use | continents, parks, areas etc. |
|
H* | Hydrographic feature | lake, canal etc. |
There is a priority associated with an entry. When a name matches multiple entries the name with the highest priority is chosen. When there are several matching items with the same highest priority this is indicated with reply status "ambiguous" (2).
The following is the city Hamburg in Germany:
and this is Hamburg in Sweden:
If you actually wanted the first order administrative area in Germany named Hamburg you also need to specify a type:
You can also specify multiple areas when needed. For instance in USA there are many Hamburg. To get the one in Arkansas specify:
A GeoJSON file can also be used as a geometry service where names are looked up from an attribute in the file. Any GeoJSON file with point data can be used as a point geometry service. Just specify the url and name of the attribute that should be matched with the data. Note! key attribute names are case sensitive.
A GeoJSON file can also be used as a geometry service where names are looked up from an attribute in the file. Any GeoJSON file with polygonal data can be used as an area geometry service. Just specify the url and name of the attribute that should be matched with the data. Note! key attribute names are case sensitive.
The following files are provided by Qlik:
URL | Contains | Key attributes |
---|---|---|
i://location/areas/countries.geojson | Countries of the world |
|
i://location/areas/states.geojson | States for of the world, including the countries USA, Canada, Brazil and Australia |
|
i://location/areas/se_kommuner.geojson | Swedish kommuner |
|