travel_map

旅游推荐


美食推荐

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>美食推荐接口 选中游览景点和学校后,要求出现多项内容时,可以分别按照热度,评价,距离排序,并且可以筛选出同菜系的美食, 要求可以搜索美食名称,可以搜索菜系 多项相同内容出现时,可以按照用户选择的热度、评价和距离进行排序,只看前10个美食</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost:8080/recommendations?cuisine=川菜</code>//按照菜系进行筛选,这里默认排序按照热度</li> <li><code>http://localhost:8080/recommendations?cuisine=川菜&amp;amp;sortBy=assessment</code>//按照评价排序</li> <li><code>http://localhost:8080/recommendations?query=红烧肉</code>//按照菜的名称查找</li> </ul> <h5>请求方式</h5> <ul> <li>Get</li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> </tbody> </table> <h5>返回示例</h5> <pre><code>  [ { &amp;quot;name&amp;quot;: &amp;quot;水煮肉片&amp;quot;, &amp;quot;cuisine&amp;quot;: &amp;quot;川菜&amp;quot;, &amp;quot;hotpoint&amp;quot;: 8.9, &amp;quot;assessment&amp;quot;: 4.8 }, { &amp;quot;name&amp;quot;: &amp;quot;宫保鸡丁&amp;quot;, &amp;quot;cuisine&amp;quot;: &amp;quot;川菜&amp;quot;, &amp;quot;hotpoint&amp;quot;: 9.1, &amp;quot;assessment&amp;quot;: 4.8 }, { &amp;quot;name&amp;quot;: &amp;quot;麻婆豆腐&amp;quot;, &amp;quot;cuisine&amp;quot;: &amp;quot;川菜&amp;quot;, &amp;quot;hotpoint&amp;quot;: 9.0, &amp;quot;assessment&amp;quot;: 4.6 } ] </code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"></td> <td style="text-align: left;"></td> <td>返回美食 数组</td> </tr> </tbody> </table>

页面列表

ITEM_HTML