You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.
$con = pg_connect("host=".$db_con["host"]." dbname=".$db_con["db"]." user=".$db_con["username"]." password=".$db_con["password"]." port=".$db_con["port"]) or die("Postgres Error");
$sql = "SELECT ways.id as way_id, nodes.id as node_id, ST_X(nodes.geom) as long, ST_Y(nodes.geom) as lat, ways.tags FROM nodes JOIN way_nodes ON way_nodes.node_id = nodes.id JOIN ways ON way_nodes.way_id = ways.id WHERE ways.tags ? 'historic'";
$r = pg_query($con, $sql) or die(pg_last_error());