地图服务资源设计与响应机制详解
1. 搜索结果的表示
搜索结果列表与被搜索的地点相关联。例如,“拉什莫尔山附近的餐厅”的表示应该链接到“拉什莫尔山”。当客户端在某个地点或其周边进行搜索时,搜索结果通常是地图上的地点。搜索结果列表本质上是一系列指向已定义资源(地图上的命名地点)的链接。
以下是搜索美国名为“Springfield”的地点的表示示例:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>Search results: "Springfield"</title></head>
<body>
<p>
Places matching <span class="searchterm">Springfield</span>
in or around
<a class="place" href="/Earth/USA">the United States of America</a>:
</p>
<ul>
<li>
<a class="place" href="/Earth/USA/IL/Springfield">Springfi
地图服务资源设计与优化
超级会员免费看
订阅专栏 解锁全文
985

被折叠的 条评论
为什么被折叠?



