| In recent years,with the continuous increase of geographic entity information related to offline scenarios,the demand for related geographic information query has been continuously enriched,and thus there are more complex requirements for the query of geographic entity location information.At present,the mainstream mobile terminal geographic location query applications on the market can only support query by directly inputting the point of interest attribute,and cannot limit the target object conditions too much;the complex condition is the combination of the target object and multiple complex conditions,and obtaining the condition result requires a large amount of space calculation,which will bring computational performance pressure to the server.In order to solve the problems faced by the above existing geographic information query systems,this thesis implements a complex condition geographic information query system for mobile terminals,which can bring better services to users who have complex queries.First of all,in view of the problem that the current mobile terminal geographic location query application cannot limit the target object conditions too much,analyze the requirements of the system and understand the needs of system users in detail,the use cases mainly include the complex condition query function,and the visual analysis function of geographic information results,etc.,and design use case diagrams to describe requirements;describe the outline design of the system from the two aspects of architecture design and system module function design;during the detailed design and implementation phase,a global state manager is designed based on MobX to control the state of the system,and the implementation process is described through class diagrams,flowcharts,component diagrams,etc.,and show the specific realization effect diagram;in the testing phase,the system is fully tested through functional testing and non-functional testing to ensure the stability of the system.Secondly,in view of the huge amount of data that brings query efficiency and performance problems to the server to calculate the query results,the remote dictionary server(Redis)cache database is used.Redis has a cache capacity limit,and the cache object needs to be replaced.Aiming at the problem of low request hit rate in the existing cache replacement algorithm,this thesis proposes a greedy dual size frequencycount cache algorithm based on custom complex conditional template data,and the experimental analysis of the improved algorithm proves that the improved algorithm can improve the hit rate of the server. |