The invention provides a POI retrieval sorting method, a device and a computer readable storage medium. The method includes: receiving a user's POI retrieval request, which includes location base point, retrieval area range and target POI attributes; dimensionality reduction of latitude and longitude data of the location base point using GeoHash coding to obtain the coding data of the location base point; mapping the location base point to the corresponding coding data. In the encoding unit, the search encoding range corresponding to the search area range is determined; the target POI set is obtained by POI retrieval with the target POI attribute as the search condition in the search encoding range; the distance between the target POI and the base point of the location is calculated, and the target POI is sorted according to the distance from near to far; The results of the sorting of the target POI are displayed to the users. The invention utilizes the mapping relationship between geographic location and GeoHash coded data, combines POI attribute information, completes the accurate retrieval of POI, and reduces the calculation amount in the process of POI retrieval and sorting.
【技术实现步骤摘要】
POI检索排序方法、装置及计算机可读存储介质
本专利技术涉及信息处理
,尤其涉及一种兴趣点(PointofInterest,POI)检索方法、装置及计算机可读存储介质。
技术介绍
兴趣点(PointofInterest,POI),又称信息点(PointofInformation),是基于位置服务(LocationBasedService,LBS)的最核心数据,电子地图上常用气泡图标来表示POI,像电子地图上的景点、政府机构、公司、商场、饭馆等,都是POI。在线上到线下(OnlineToOffline,O2O)商务模式中,POI检索是非常重要的应用场景,通常用于检索用户当前位置指定范围内的目标POI,并获取其属性信息。目前常用的POI检索方法需要遍历数据库,会消耗大量的计算资源,当目标POI的数量非常大时,对目标POI的排序操作也需占用大量计算资源,使普通电子装置的处理速度难以满足用户的实际需求。
技术实现思路
鉴于以上原因,有必要提供一种POI检索排序方法、装置及计算机可读存储介质,对目标POI进行精确检索,降低POI检索排序过程中的计算量。为实现上述目的,本专利技术提供一种POI检索排序方法,该方法包括:接收步骤:接收用户的POI检索请求,该POI检索请求中包括位置基点、检索区域范围和目标POI属性;编码步骤:利用GeoHash编码对所述位置基点的经纬度数据进行降维处理,得到该位置基点的编码数据;确定步骤:将所述位置基点映射到所述编码数据对应的编码单元中,确定所述检索区域范围对应的检索编码范围;检索步骤:在所述检索编码范围内以所述目标POI属性为检索条 ...
【技术保护点】
1.一种兴趣点(Point of Interest,POI)检索排序方法,应用于电子装置,其特征在于,该方法包括:接收步骤:接收用户的POI检索请求,该POI检索请求中包括位置基点、检索区域范围和目标POI属性;编码步骤:利用GeoHash编码对所述位置基点的经纬度数据进行降维处理,得到该位置基点的编码数据;确定步骤:将所述位置基点映射到所述编码数据对应的编码单元中,确定所述检索区域范围对应的检索编码范围;检索步骤:在所述检索编码范围内以所述目标POI属性为检索条件进行POI检索,得到目标POI集合;计算步骤:计算所述目标POI集合中的各目标POI与所述位置基点间的距离,按照距离由近到远对所述目标POI进行排序;及展示步骤:将所述目标POI的排序结果展示给用户。
【技术特征摘要】
1.一种兴趣点(PointofInterest,POI)检索排序方法,应用于电子装置,其特征在于,该方法包括:接收步骤:接收用户的POI检索请求,该POI检索请求中包括位置基点、检索区域范围和目标POI属性;编码步骤:利用GeoHash编码对所述位置基点的经纬度数据进行降维处理,得到该位置基点的编码数据;确定步骤:将所述位置基点映射到所述编码数据对应的编码单元中,确定所述检索区域范围对应的检索编码范围;检索步骤:在所述检索编码范围内以所述目标POI属性为检索条件进行POI检索,得到目标POI集合;计算步骤:计算所述目标POI集合中的各目标POI与所述位置基点间的距离,按照距离由近到远对所述目标POI进行排序;及展示步骤:将所述目标POI的排序结果展示给用户。2.如权利要求1所述的POI检索排序方法,其特征在于,所述位置基点为用户当前位置或用户指定的任意位置,所述目标POI属性包括POI名称、POI类别、POI地址、运营时间和联系电话中的一项或几项。3.如权利要求1所述的POI检索排序方法,其特征在于,所述确定步骤还包括:根据所述检索区域范围的面积确定所述编码单元的编码长度。4.如权利要求1所述的POI检索排序方法,其特征在于,所述计算步骤采用球面距离公式计算各目标POI与所述位置基点间的距离。5.如权利要求1至4中任一项所述的POI检索排序方法,其特征在于,在对POI编码数据进行存储时,将POI编码数据和POI属性信息作为一个整体,采用Elasticsearch对其进行底层...
【专利技术属性】
技术研发人员:张华,
申请(专利权)人:康键信息技术深圳有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。