CanalPlanAC

Place types and symbols

There are types of places, but they work poorly. This is scribbled notes at the moment until I understand and can fix.

Tables in finished code

CREATE TABLE place_types (key INTEGER PRIMARY KEY, name TEXT, misc_JSON TEXT);

holds types that places can be. misc_JSON can have "icon" which is the name of an icon displayed for places of that type

CREATE TABLE place_type_associations (place_id CHAR(4), type_key INTEGER);

Links places and types, so a place can be multiple types.

Consider setting index on place_id at some stage

poi/poi.sqlite - holds lots of configuration tables, and POI data. Can build the fixed reference tables by sqlite3 poi.sqlite < tablesource.sql

Tables and code that can now be deleted

To do

Releated issues

Done

Types of symbol

Tables to handle all of this are generated from tablesource.sql

The following types exist: