【发布时间】:2014-03-11 04:49:15
【问题描述】:
我正在考虑路线图的数据库架构并考虑可能的最佳模型。我的脑海中有以下查询需要像这样处理
Do streets s1 and s2 intersect?
Get all streets adjacent to point of interest p.
OR
Get the distance between entrance e1 and exit e2 on highway h.
Get the shortest route from intersection i1 to intersection i2.
我认为表名应该
roads and streets, including highways
governmental regions: states, counties, and local municipalities of cities, towns, villages
我在数据库建模方面有很强的专业知识,但这是我第一次创建这样的模式,在这方面有任何帮助
根据 SO 规则,OP 必须付出一些努力,我已经看到了一些 similar questions 这就是我在架构中寻求帮助的原因。
【问题讨论】:
-
听起来您需要的是一个地理引擎(如 oracle 空间),其中包含一个包含兴趣点的表格,包括纬度/地段坐标和类别/类型等......
标签: mysql oracle google-maps database-design uml