readers/tfl_common.rb
# Get existing tags for a node
Get existing tags for a node
Get existing tags for a node
def node_tags(id)
		sql = "SELECT hstore_to_json(tags) AS tags FROM planet_osm_point WHERE osm_id=$1"
		tags= {}
		$conn.exec_params(sql, [id]).each { |res| tags = JSON.parse(res['tags'] || "{}") }
		tags
	end
def node_tags ( id ) sql = "SELECT hstore_to_json(tags) AS tags FROM planet_osm_point WHERE osm_id=$1" tags = { } $conn . exec_params ( sql , [ id ] ) . each { | res | tags = JSON . parse ( res [ 'tags' ] || "{}" ) } tags end
Get existing tags for a node
Get existing tags for a node
id
<not_specific>