[go: up one dir, main page]

CN106453822B - Map information display method based on asynchronous loading - Google Patents

Map information display method based on asynchronous loading Download PDF

Info

Publication number
CN106453822B
CN106453822B CN201610794595.1A CN201610794595A CN106453822B CN 106453822 B CN106453822 B CN 106453822B CN 201610794595 A CN201610794595 A CN 201610794595A CN 106453822 B CN106453822 B CN 106453822B
Authority
CN
China
Prior art keywords
information
data
target
map
longitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610794595.1A
Other languages
Chinese (zh)
Other versions
CN106453822A (en
Inventor
盛云
范从俊
谢懿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Business Big Data Technology Co Ltd
Original Assignee
Chengdu Business Big Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Business Big Data Technology Co Ltd filed Critical Chengdu Business Big Data Technology Co Ltd
Priority to CN201610794595.1A priority Critical patent/CN106453822B/en
Publication of CN106453822A publication Critical patent/CN106453822A/en
Application granted granted Critical
Publication of CN106453822B publication Critical patent/CN106453822B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)
  • Instructional Devices (AREA)

Abstract

The invention relates to the field of internet information processing, in particular to a map information display method based on asynchronous loading. When a user enters a target map information display page, firstly displaying default map information, and reading geographical coordinate information, character information and picture information of a target through a thread; and drawing the target position and the character and picture information corresponding to the target on the displayed basic map page according to the coordinate position of the target. The problems of overhigh memory occupation, low page refreshing efficiency and unsmooth picture during synchronous display are solved; the fluency of picture switching is ensured, and the user experience is improved; the method has higher application value in the related service business of the mobile intelligent terminal based on the geographic information, and is particularly suitable for the situation that a plurality of targets are required to be displayed on a map page at the same time and the description of the characters and pictures of the targets is required to be displayed.

Description

Map information display method based on asynchronous loading
Technical Field
The invention belongs to the field of internet information processing, and particularly relates to a map information display method based on asynchronous loading.
Background
The rise of mobile intelligent equipment provides a great deal of convenience for life and work of people, wherein the popularization degree of the smart phone in the mobile intelligent terminal is the highest, and the use is the most extensive. Various applications of the smart phone are also continuously updated and developed; the existing smart phone has limited memory and too many loaded application programs, and is often jammed in a picture when being used, especially when more pictures are displayed simultaneously, the pictures are generally displayed in a front-end display mode by reading from a background because the occupied memory is large; if the picture is read from the background, the picture is generally required to be converted through binary stream, the reading speed can affect the picture display and drawing effects, and the factors cause the phenomena of poor page refreshing effect and unsmooth operation when a large number of characters and pictures are synchronously displayed, thereby seriously affecting the use experience of users.
The service based on the geographic information system has very wide application in various applications, such as providing user position service, inquiring geographic information of a target, analyzing and mining the commercial value of the target region and the geographic information, and the like; many mobile phone APPs provide a service for displaying related data information on a map tool based on geographic positions, but as the amount of data to be displayed is larger and larger, how to quickly display a large amount of data on the premise of not influencing user operation experience becomes an important problem. At present, when a large amount of data are displayed on a map tool by a mobile phone APP, a target is displayed on a map by a small point, and relevant data corresponding to the small point is obtained by clicking the small point, so that the rendering of an image is reduced, and the smoothness of an interface is ensured. However, the display method requires the user to click the target to display the detailed information, increases the operation steps of the user, is not intuitive enough in the display mode, and has a good display effect only on the premise of not needing to intuitively display the detailed information of the data at one time. When a large amount of information including picture information based on the geographic position needs to be displayed on the map tool at one time, the existing technical scheme cannot be applied.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provide a map information display method based on asynchronous loading. When a user enters a first default option interface, some information of the map interface is asynchronously preloaded through threads, and the data loading speed after the user switches to the map information option interface is increased on the premise that the smoothness of the user operation is guaranteed.
In order to achieve the above purpose, the invention provides the following technical scheme:
the map information display method based on asynchronous loading includes that when a user enters a target map information display page, a default map page is displayed, and geographical coordinate information, character information and picture information of a target are read through threads; and drawing the target position and the character and picture information corresponding to the target on the displayed basic map page according to the coordinate position of the target.
Specifically, before the map information is displayed, the name and address information of the target characters are acquired from the internet through a crawler technology.
Further, the geographic coordinate information of the target information includes longitude information and latitude information, and the longitude information and the latitude information are acquired by calling an existing map platform interface according to the address of the target. In order to improve the accuracy of acquiring the longitude and latitude information, mutual verification and completion are performed through the longitude and latitude data acquired from at least two map platforms.
Further, storing the name, longitude and latitude information and picture data of the target in a distributed file system, and establishing an index format containing the name of the target by using an elastic search; corresponding information is imported into the index.
On the basis of the above process, the target map information display of the method of the present invention comprises the following implementation steps:
(ST1) the user entering a query target;
(ST2) entering a map information presentation page of the target;
(ST2-a) displaying a default map page;
(ST2-B) establishing communication connection with the background through threads, and inquiring and reading the target name, longitude data, latitude data and picture data stored in the file system according to the index; and calling a map interface to draw the position of the target on the map according to the latitude and longitude information of the target, and displaying the name of the target and corresponding picture data at the corresponding position.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a map information display method based on asynchronous loading.A user firstly displays default map information when entering a target map information display page, and reads geographical coordinate information, character information and picture information of a target through a thread; and drawing the target position and the character and picture information corresponding to the target on the displayed basic map page according to the coordinate position of the target. When the information to be displayed comprises picture information, if all the information on the map occupies a large amount of mobile phone memory at one time, the picture is blocked, and the efficiency of page refreshing and picture rendering is influenced; the method adopts an asynchronous loading mode, reduces the occupation of the memory, improves the efficiency of page refreshing and picture rendering, avoids picture blocking, ensures the smoothness of operation, displays basic map information when a user enters a map display page, then can see the position name of a target displayed on the map and corresponding picture information, gradually displays the picture, and has smoother operation feeling for the user; the display effect is obviously improved compared with a synchronous loading mode.
Description of the drawings:
fig. 1 is a schematic diagram of target map information display.
Fig. 2 is a schematic view of an interface for simultaneously displaying multiple pieces of target map information.
Fig. 3 is a schematic diagram of implementation steps of the asynchronous loading-based map information display method.
It is to be understood that all of the figures of the present invention are schematic and do not represent actual dimensions or proportions.
Detailed Description
The present invention will be described in further detail with reference to test examples and specific embodiments. It should be understood that the scope of the above-described subject matter is not limited to the following examples, and any techniques implemented based on the disclosure of the present invention are within the scope of the present invention.
The invention provides a map information display method based on asynchronous loading. When a user enters a first default option interface, some information of the map interface is asynchronously preloaded through threads, and the data loading speed after the user switches to the map information option interface is increased on the premise that the smoothness of the user operation is guaranteed.
In order to achieve the above purpose, the invention provides the following technical scheme:
the map information display method based on asynchronous loading includes that when a user enters a target map information display page, default map information is displayed first, and geographical coordinate information, character information and picture information of a target are read through a thread; and drawing the target position and the text and picture information corresponding to the target on the displayed basic map page according to the coordinate position of the target as shown in fig. 2. Because all the character pictures are not displayed on the map at one time, the occupation of the internal memory is reduced, the phenomenon of picture blocking is avoided, basic map information is firstly seen from the perspective of user experience, and then the display of the target information on the map is seen, the picture display is smoother, and the user experience is improved. The asynchronous loading mode reduces the use of the mobile phone memory, ensures the efficiency of interface refreshing and rendering, and leads the user operation to be smoother. The method is particularly suitable for the situation that the text and the picture information of the large target are displayed on the map page at one time. Specifically, before the map information is displayed, the name, address information and picture information of the target are acquired from the internet through a crawler technology. The selection of the target is set according to specific application (such as vertical search in a certain field), and the field is set as required to acquire corresponding information from the internet, so that a basis is provided for analysis and reformation of related data.
Furthermore, the geographic coordinate information of the target information is acquired by calling the existing map platform interface according to the address of the target. In order to improve the accuracy of acquiring the longitude and latitude information, mutual verification and completion are performed through the longitude and latitude data acquired from at least two map platforms.
Further, the mutual data verification and completion comprises the following implementation processes:
(1) calling a first map platform interface to obtain first longitude data and first latitude data of an enterprise;
(2) calling a second map platform interface to obtain second longitude data and second latitude data of the enterprise;
(3) the data are mutually verified and complemented, and the following rule conditions are applied:
a. if the longitude and latitude data acquired from the first map platform are complete and the longitude and latitude data acquired from the second map platform are missing, selecting the first longitude data and the first latitude data as the geographical longitude and latitude information of the enterprise;
b. selecting data information acquired from the platform, sorting according to the credibility, and selecting corresponding longitude and latitude information with higher credibility as the longitude and latitude data of the enterprise;
c. and if the difference data 1 and the difference data 2 are both within the set threshold, the first longitude data and the first latitude data or the second longitude data and the second latitude data can be selected as the geographical longitude and latitude data of the enterprise. The rule conditions described above apply in order.
Further, the name and longitude and latitude information data of the target are stored in a database, and the picture data are stored in a distributed file system; using an elastic search to establish an index format containing a target name; corresponding information is imported into the index. The ElasticSearch is a search server based on Lucene, provides a full-text search engine with distributed multi-user capability, and is based on a RESTful web interface, so that a user can conveniently search and read data through the web interface.
On the basis of the above process, the target map information display of the method of the present invention comprises the following implementation steps:
(ST1) the user entering a query target;
(ST2) entering a map information presentation page of the target;
(ST2-a) displaying a default map page;
(ST2-B) establishing communication connection with the background through threads, and inquiring and reading the target name, longitude data, latitude data and picture data stored in the file system according to the index; and calling a map interface to draw the position of the target on the map according to the latitude and longitude information of the target, and displaying the name of the target and corresponding picture data at the corresponding position.
Example 1
Crawling to a target name and corresponding address information and picture information from a network according to field setting, for example, the name is Chengdu ABCD technology limited company, and the address is: calling a first map platform interface according to the address information to acquire geographic longitude and latitude information corresponding to the target address, wherein the geographic longitude and latitude information is xx in the Tianfu Dadao of the metropolis: { "status": 0, "result": { "location": { "lng": 105.07392899855, "1 at": 36.555138880016}, "precision": 1, "confidence": 80, "level": the credibility of the returned information of "\\ u5546\ u52al \ u5927\ u53a 6" } can be obtained as follows: 80, 105.07392899855 longitude and 36.555138880016 latitude.
Calling a second map platform interface to obtain the geographic longitude and latitude information corresponding to the target address as follows: { "status": "1", "info": "OK", "info": "1000", "count": "1", "geocodes": [ { "formatted _ address": "Sichuan province city wuhou district certain plaza B seat", "province": "Sichuan province," citycode ": "028", "city": "adult city", "discrict": "Wuhou region", "township": [] "neighborwood": { "name": [] "type": [] }, "building": { "name": [] "type": [] }, "encode": "510107", "street": "midstream of the Tianfu Dai", "number": "xx number", "location": "104.067139, 30.548830", "level": "house number" }. From the return information, the following information can be obtained: confidence is the number of the house, longitude 105.067139, and latitude 36.548830.
If the data acquired by the two platforms are complete, applying rule b, and sorting according to the credibility of the acquired data of the two platforms, for example, sorting the data of the second map platform by "level": "house number", the corresponding translates to "confidence: 99 ", compared to" confidence level: 80' is higher, the longitude obtained by the second map platform is 105.067139, and the latitude is 36.548830 as: longitude and latitude data corresponding to 'Chengdu ABCD technology limited company, Chengdu Tianfu Dadao middle section xx #'. And storing the acquired longitude and latitude information in an HDFS distributed file system, and completing the process of acquiring and storing the longitude and latitude information.
Creating an ElasticSearch index mapping format: the fields include: name, address; the corresponding information is imported into the index.
The above process is shown in figure 1. On the basis of the data, when a user inputs 'Chengdu ABCD technology limited' when a map information display page is displayed, the user firstly enters a default map page, and calls a map interface to target according to corresponding information read from a background by another thread: the location, name and picture description of "Chengdu ABCD technologies, Inc" is shown in FIG. 2.
Example 2
Obtaining names, addresses, longitudes, latitudes and pictures of a plurality of targets in the same way as the embodiment; and the information is imported into the corresponding index, and when the geographic information is displayed, the information of a plurality of targets is read and read in an asynchronous loading mode, and the related information of the targets is displayed at the corresponding positions, as shown in fig. 3.

Claims (4)

1. The map information display method based on asynchronous loading is characterized in that when a user enters a target map information display page, default map information is displayed firstly, and geographical longitude and latitude information, character information and picture information of a target are read through a thread; displaying a target position and corresponding character and picture information on a displayed basic map page according to the coordinate position of the target;
calling a map platform interface according to the address of the target to acquire corresponding geographic longitude and latitude information, and performing mutual verification and completion through longitude and latitude data acquired from at least two map platforms;
the mutual authentication and completion comprises the following implementation processes:
(1) calling a first map platform interface to obtain first longitude data and first latitude data of an enterprise;
(2) calling a second map platform interface to obtain second longitude data and second latitude data of the enterprise;
(3) the data are mutually verified and complemented, and the following rule conditions are applied:
a. if the longitude and latitude data acquired from the first map platform are complete and the longitude and latitude data acquired from the second map platform are missing, selecting the first longitude data and the first latitude data as the geographical longitude and latitude information of the enterprise;
b. selecting data information acquired from the platform, sorting according to the credibility, and selecting corresponding longitude and latitude information with higher credibility as the longitude and latitude data of the enterprise;
c. comparing the first longitude data with the second longitude data to obtain difference data 1, comparing the first latitude data with the second latitude data to obtain difference data 2, and if the difference data 1 and the difference data 2 are both within a set threshold, selecting the first longitude data and the first latitude data or the second longitude data and the second latitude data as geographical longitude and latitude data of the enterprise; the rule conditions described above apply in order.
2. The method of claim 1, wherein the name and address of the object are obtained from the internet via a crawler technology prior to presentation of the map information.
3. The method of claim 2, wherein latitude and longitude information, name, picture of the target are stored in a distributed file system; and using an elastic search to establish an index format containing a name field; corresponding information is imported into the index.
4. Method according to one of claims 1 to 3, characterized in that the display of target map information comprises the following implementation steps:
(ST1) the user entering a query target through the client;
(ST2) entering a map information presentation page of the target;
(ST2-a) displaying a default map page;
(ST2-B) establishing communication connection with the background through threads, and inquiring and reading the target name, longitude data, latitude data and picture data stored in the file system according to the index; and calling a map interface to draw the position of the target on the map according to the latitude and longitude information of the target, and displaying the name of the target and corresponding picture data at the corresponding position.
CN201610794595.1A 2016-08-31 2016-08-31 Map information display method based on asynchronous loading Expired - Fee Related CN106453822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610794595.1A CN106453822B (en) 2016-08-31 2016-08-31 Map information display method based on asynchronous loading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610794595.1A CN106453822B (en) 2016-08-31 2016-08-31 Map information display method based on asynchronous loading

Publications (2)

Publication Number Publication Date
CN106453822A CN106453822A (en) 2017-02-22
CN106453822B true CN106453822B (en) 2021-04-13

Family

ID=58165104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610794595.1A Expired - Fee Related CN106453822B (en) 2016-08-31 2016-08-31 Map information display method based on asynchronous loading

Country Status (1)

Country Link
CN (1) CN106453822B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766436B (en) * 2017-09-20 2021-09-21 广东省建设信息中心 Address associated data processing method, user terminal and server
CN108647071A (en) * 2018-05-02 2018-10-12 山东浪潮通软信息科技有限公司 A kind of general purpose module of quick obtaining latitude and longitude coordinates
CN109634544B (en) * 2018-11-23 2022-04-12 北京梧桐车联科技有限责任公司 Application interface display method and device, display equipment and storage medium
CN110191006A (en) * 2019-06-25 2019-08-30 苏州市协力环保设备有限公司 Internet of Things cloud platform and its working method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156480A (en) * 2014-08-26 2014-11-19 天津市普迅电力信息技术有限公司 WPF-and-GDI+-based layered drawing method for map
CN104991918A (en) * 2015-06-24 2015-10-21 东方网力科技股份有限公司 WEBGIS based online big data display method
US9280558B1 (en) * 2012-01-13 2016-03-08 Yelp Inc. Revising a map area based on user feedback data

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2412281B (en) * 2004-03-15 2006-12-13 Tomtom Bv Navigation device displaying dynamic travel information
CN1896691A (en) * 2005-07-15 2007-01-17 英华达(上海)电子有限公司 Method for inquiring map by GPS and website map server
CN101917459B (en) * 2010-07-21 2014-04-09 宇龙计算机通信科技(深圳)有限公司 Cartographic information transmission and display method, cartographic information transmission and display system, terminal and server
US9251021B2 (en) * 2011-05-23 2016-02-02 Bradley Gene Calder Asynchronous replication in a distributed storage environment
CN104239396B (en) * 2014-06-20 2017-04-12 北京奇虎科技有限公司 Method and device for searching business object on electronic map
CN105469382B (en) * 2014-12-04 2019-10-25 苏州蜗牛数字科技股份有限公司 A kind of 3D map-indication method and display system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9280558B1 (en) * 2012-01-13 2016-03-08 Yelp Inc. Revising a map area based on user feedback data
CN104156480A (en) * 2014-08-26 2014-11-19 天津市普迅电力信息技术有限公司 WPF-and-GDI+-based layered drawing method for map
CN104991918A (en) * 2015-06-24 2015-10-21 东方网力科技股份有限公司 WEBGIS based online big data display method

Also Published As

Publication number Publication date
CN106453822A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106534478B (en) Map information display system based on asynchronous loading
US11250089B2 (en) Method for displaying service object and processing map data, client and server
US10678819B2 (en) Methods and apparatus for providing map locations in user applications using URL strings
EP3623942A1 (en) Message processing method and apparatus, storage medium, and computer device
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
US8306971B2 (en) Methods and systems of automatically geocoding a dataset for visual analysis
US20200065061A1 (en) Method and apparatus for processing information
US9798819B2 (en) Selective map marker aggregation
CN106453822B (en) Map information display method based on asynchronous loading
CN107085600B (en) POI recommendation method, device, equipment and computer readable storage medium
CN107133351B (en) Plotting method and apparatus, user terminal, server, and computer-readable medium
US9613546B2 (en) Systems and methods for managing and presenting geolocation data
CN103812880B (en) A kind of method for pushing of network data, equipment and system
US10783874B2 (en) Method and apparatus for providing voice feedback information to user in call
CN106446047A (en) Enterprise geographic information query and display system
US20180336532A1 (en) Calendar range searching
CN109558470B (en) Trajectory data visualization method and device
CN103200224A (en) Method and device and terminal of information sharing
CN105824517A (en) Implementation method and apparatus of desktop
CN103744575A (en) Method and equipment for providing input auxiliary areas of input applications
CN106469201A (en) A kind of Geography of enterprise information displaying method based on Asynchronous loading
CN103324749A (en) Spatial analysis and correction method based on standard text addresses
WO2016090352A1 (en) Customized synthetic data creation
CN110007842A (en) Web page contents choosing method and device
CN105069014A (en) Map searching method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210413

Termination date: 20210831

CF01 Termination of patent right due to non-payment of annual fee