Click or drag to resize

IMPORT POI Statement

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
IMPORT POI Statement

This statement converts GIS-formatted POI data to GBFS data.

Syntax

Alchemy
IMPORT POI [gbfs1 = %col1] FROM "path\src_file" WHERE condition;

Nomenclature

gbfsX One or more GBFS columns. See the 'Column Names' section below for a list of appropriate GBFS columns.
colX An expression referencing one or more GIS columns in src_table. This column will be converted to GBFS data.
path\src_file Specifies the path and file containing the GIS shapefile data.
condition A logic expression that is satisfied by a subset of the data in path\src_file. This expression, along with the WHERE keyword, is optional.

Column Names

The following GBFS columns are available for population through the Alchemy IMPORT POI command.

Column

Description

Type

Length

Values

LABEL

The label assigned to this POI. This label may be rendered by GeoBase on a map.

Text

Variable

LANG

Language code: the language that should be associated with this POI.

Text

3

ENG: English

FRE: French

SPA: Spanish

complete list

PHONE

The phone number associated with this POI. This data may be presented using a BalloonPushPin placed at the POI's map location.

Text

Variable

TYPE

The type of this POI. See 'POI Types' table below.

Numeric

Variable

0-21

FOODOptional. The food type of this POI
GEOM Optional. The geometry of this POI. If this is specified it must be a LatLon. This is not necessary when importing POIs from a shapefile, as the shapefile has geometry associated with each row. Other formats, such as CSV will require processing to specify the LatLon. LatLon

POI Types

This table shows the different POI (point of interest) types. The polygon TYPE field should contain one of the type values listed below (in the left-hand column).

NameDescription
Airport4581
Amusement Park7996
ATM3578
Automobile Club8699
Bank6000
Book Store9995
Border Crossing9999
Bowling Center7933
British Rail Station10001
Bus Station4170
Business5000
Business Service9994
Car Dealer5511
Car Repair7538
Casino7985
Cemetery9591
Church9992
Cinema7832
City Hall, or Local Authority Center9121
Coffee Shop9996
Convention Center7990
Community Center7994
Commuter Rail Station4100
Court House9211
Ferry Terminal4482
Fire Station7392
Golf Course7992
Grocery Store5400
Higher Education8200
Hospitals8060
Hotel or Motel7011
Ice Skating Rink7998
Library8231
London Underground Station10002
Marina4493
Monument5999
Motorcycle Dealership5571
Museum8410
Nightlife5913
Park7947
Park And Ride7522
Parking Garage7521
Parking Lot7520
Performing Arts Center7929
Petrol Station5540
Pharmacy9997
Police Station9221
Public Sport Airport4580
Rental Car7510
Rest Area7897
Restaurant5800
Schools8211
Shopping6512
Ski Resort7012
Sports Center7997
Sports Complex7940
Tourist Attraction7999
Tourist Information7389
Train Station4013
Unknown0
Winery2084

IMPORT POI From CSV Files

To import POIs from CSV format text files, use the following format.

Alchemy
IMPORT POI [name = %name, geom = wkt(%point)] FROM "csv://src_file";

Nomenclature

name An expression referencing one or more column in the CSV source file.
geom A column of POI location data stored as well known text (WKT) in the CSV source file.

Example

CSV
poi_label,poi_type,poi_location
Hamburger Heaven,5800,POINT(-118.265676 34.046188)
Note Note

Note the formatting of our point. For Well Known Text, the location should be formatted as 'Longitude Latitude', reversing the conventional GeoBase standard of 'Latitude Longitude'. Note also the use of a space as a separator rather than a comma.

The IMPORT POI statement required to import data from the example CSV file shown above is:

Alchemy
IMPORT POI [
  label = %poi_label,
  type = %poi_type,
  geom = wkt(%poi_location)
] FROM "csv://mycsvfile.csv";

The 'poi_label' column provides a name for each POI and the 'poi_type' the type of POI (refer to the 'POI Types' table above). The 'poi_location' column provides POI points stored as WKT.