CityofToronto / bdit_incidents

Analyzing impacts of traffic incidents on road congestion
https://github.com/orgs/CityofToronto/teams/bigdatainnovationteam
2 stars 0 forks source link

Link incidents to corresponding TMC #6

Closed dolejarz closed 7 years ago

radumas commented 7 years ago
radumas commented 7 years ago

Rough PostgreSQL outline

CREATE OR REPLACE FUNCTION match_tmc(point GEOMETRY, OUT tmc char(9), OUT tmc_distance float)

And then usage like (may not work)


FROM incidents``` 

Or [like this](http://gis.stackexchange.com/a/144230/36886)