CN107203592B - A kind of pushed information based on three-point fox method accepts and believe detection method - Google Patents

A kind of pushed information based on three-point fox method accepts and believe detection method Download PDF

Info

Publication number
CN107203592B
CN107203592B CN201710277470.6A CN201710277470A CN107203592B CN 107203592 B CN107203592 B CN 107203592B CN 201710277470 A CN201710277470 A CN 201710277470A CN 107203592 B CN107203592 B CN 107203592B
Authority
CN
China
Prior art keywords
message
point
information
distance
android
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
CN201710277470.6A
Other languages
Chinese (zh)
Other versions
CN107203592A (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.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
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 Wuhan University WHU filed Critical Wuhan University WHU
Priority to CN201710277470.6A priority Critical patent/CN107203592B/en
Publication of CN107203592A publication Critical patent/CN107203592A/en
Application granted granted Critical
Publication of CN107203592B publication Critical patent/CN107203592B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Abstract

The present invention relates to a kind of pushed informations based on three-point fox method to accept and believe detection method, using the location information in subjective message this objective factor as evaluation reference, no added new evaluation criterion, the complexity of checkout procedure is effectively reduced, using three-point fox method, it is assisted by the positioning function of the electronic map in smart phone, according to geometry scanning algorithm give one it is important apart from computational algorithm, preliminary judgement informant region range, and it is compared with information generation area, verify to coarseness reliable age information.

Description

A kind of pushed information based on three-point fox method accepts and believe detection method
Technical field
The invention belongs to Android platform field of locating technology, more particularly to a kind of push based on three-point fox method Infomation detection mechanism.
Background technique
(1) location technology
In terms of technology, the location technology of country's mobile device can be divided into following 3 class at present:
1) network positions.Network positions are relatively low to the hardware requirement and software requirement of equipment, as long as can be attached to network .The precision in the geographical location therefore obtained by network positions is unable to get good guarantee.Network positions are according to net The different of network can be segmented again, common are base station location and Wi-Fi positioning.Mobile phone is remoter at a distance from base station, and signal is poorer, Otherwise closer to base station, signal is stronger.Base station location be exactly by calculate equipment send information reach each base station when Between obtain equipment at a distance from base station and angle.Since the position of base station is built by each mobile communications operator, because This their position is known and clear.So according to the distance and angle of the position of base station and measurement, so that it may calculate equipment Location information.Wi-Fi positioning is also known as Wi-Fi Hotspot positioning, it depends on existing wlan network, using the positioning side RSS Formula, what is utilized is the wireless aps of fixed position (Access Point is commonly called as " hot spot ").Each hotspot has one Globally unique MAC Address, and in general, whithin a period of time, this hotspot will not move.However, nothing The position of line hot spot is obtained not by live precise measurement.When an equipment opens Wi-Fi function, may search for Many Wi-Fi Hotspots, regardless of whether encryption, if having connected, the signal strength of each hot spot can also be measured, while can also Know the SSID (Service Set Identifier, service set) and MAC (Media Access of each hot spot Control Medium Access Control, media access control, or referred to as physical address) address.When this sets Standby to open GPS function, equipment can send these data that can indicate hot spot to the location server of location-based service quotient.This Sample is formed a large-scale hot spot coordinates database.If a hot spot can be acquired constantly, the seat of this hot spot With increasing for times of collection and constantly iteration, coordinate also can more and more precisely for mark.Wi-Fi is opened when an equipment to carry out When positioning, server can obtain the MAC Address and signal strength or weakness of the Wi-Fi of surrounding.Using these information, in the database into Row retrieval, so that it may the anti-position for finding place.
2) GPS positioning.GPS (Global Position System, global positioning system) is by 24 of the covering earth The system of satellite composition.GPS positioning is exactly the location information that equipment is obtained by the communication between equipment and GPS satellite.Appoint Meaning place any time can observe 4 satellites, therefore this positioning method accuracy is higher.But GPS positioning is to shifting The hardware and software of dynamic equipment requires also relatively higher, it is necessary to have with built-in GPS module.Power consumption is also its one greatly Shortcoming.
3) mixed positioning.Mixed positioning is exactly that integrated network positioning and the comprehensive of GPS positioning use.Hybrid positioning technology handle The advantage of this two location technologies is integrated, and is learnt from other's strong points to offset one's weaknesses.Positioning is also improved while the speed of positioning is improved Accuracy.The promotion of locating speed and accuracy can cause more corresponding extended theorems.Therefore, hybrid positioning technology is fixed Development trend (Shi Ting, 2014) after the technology of position.
(2) Map Services
Business development dependent on position is very quick, include industry and commerce, medical matters, work and life every nook and cranny.This A little business provide a series of services such as positioning, tracking and sensitive area alarm to user.Such as Google Maps, Baidu Figure etc., requires to use by location-based service.
Electronic map is also referred to as numerical map.It is different from general paper map, electronic map uses computer technology, makes It is stored and is browsed with digitizing solution.By where the position that can obtain user of Web vector graphic map data base Information.Electronic map is characterized in that easily operated, is not constrained by time and region, and data can be used and be sent to arbitrarily Place (Shi Ting, 2014).Compared to traditional paper map, electronic map is low in cost, renewal speed is fast, and can carry out Interaction.Three-dimensional map is realized using virtual reality technology, people is allowed visually to obtain more comfortable enjoyment.
Commonly two-dimensional map in electronic map.Electronic map is developed most importantly by a large amount of geographic information data It combines.Data structure and model are the basic of complete electronic map exploitation.Data structure includes vector structure, grid Structure and arrow grid integrated morphology, for illustrating the logical construction and physical store method of the information on map in a computer.Number According to model inclusion relation data model and object oriented data model, there are also Spatio-Temporal Data Model for Spatial, multimedia data model etc. its His some data models.
Usually in life, electronic map has the function of very big.User can be by electronic map query anywhere Position, the best mode and route for finding trip.Such as brief introduction, contact information, Yong Huping can also be known by electronic map Valence etc. includes the information except detail location.Message can be also sent by electronic map, is publicized and is interacted.
(3) mapping module Android SDK
Mapping module Android SDK is the application that Baidu map is released for Android 2.1 and the above version equipment Routine interface.Developer can be by using the interface, and the service and data for obtaining Baidu map offer are based on to realize The map class application program of Android mobile device.Mapping module Android SDK provides basic map at present, POI is retrieved, The featured functions such as geocoding, ranging, navigation, positioning, offline map, periphery radar, LBS cloud, personalized map, such as Fig. 1 institute Show, table 1 shows the function in the main mapping module Android SDK to be used of the present invention.
1) search service: Baidu map SDK provides a variety of searching services, searches comprising location finding, Perimeter, public transport Rope etc..MKSearch class is initialized, registers the supervision object MKSearchListener of search result, it will be able to non- Synchronously complete retrieval service.After searching service application terminates, need to solve using destory () method of MKSearch Except the occupancy of resource.
2) point of interest (POI) is searched for: being referred in specific one rectangular region, the spy according to developer's setting Determine keyword, 1. are examined using poiSearchInbounds (String key, GeoPointptLB, GeoPointptRT) method Rope interest point information;2. may search for a city using poiSearchInCity (String city, String key) method The interest point information of city;3. using specified coordinate point as the center of circle, according to the whole in a certain radius of given keyword query Point of interest, the mode of application are poiSearchNearBy (String key, GeoPointpt, intradius).The knot of search Fruit will be shown by the onGetPoiResult of MySearchListener.
The partial function of 1 mapping module Android SDK of table
3) address information is inquired: being inquired address information according to geographical coordinate, is passed through reverseGeocode () and geocode () method realizes inverse address parsing and address resolution.Wherein address resolution and returning the result for inverse address parsing all exist In onGetAddrResult () method in MKSearchListener.Need be according to the type field in MKAddrInfo It is still that MKAddrInfo.MK_REVERSEGEOCODE comes specifically that distinguish be inverse address solution for MKAddrInfo.MK_GEOCODE The result of analysis or the result of address resolution.
4) search is suggested in time: according to the keyword of retrieval, providing suggestion word online.Pass through suggestionSearch (String key, String city) method is realized.Wherein parameter key is keyword, and parameter city is retrieval city.
Summary of the invention
Can not judge whether the information issued in social media is credible for media and the public, the present invention is directed to utilization can not The objective factor artificially changed --- location information, and devise the pushed information based on three-point fox method and accept and believe setting detection machine System, realizes the detection of the confidence level of message, makes every effort to reach " correct information is in the upper generation in correct position of correct time " Purpose.
Technical solution provided by the invention is that a kind of pushed information based on three-point fox method accepts and believe setting testing mechanism, is wrapped Include following steps:
A kind of pushed information based on three-point fox method accepts and believe detection method, characterized in that the following steps are included:
Step 1, android system exploitation environment is built, specifically:
Configure Android and develop environment: secondly the variable environment of JDK on installation JDK configuration Windows downloads Eclipse And configuration surroundings variable, then downloading installation Android SDK, finally installs ADT plug-in unit for Eclipse
Mapping module Android SDK: creating the file of a libs in engineering, and the file in development kit is corresponding It copies under libs catalogue and then is integrated into the engineering of oneself.
Step 2, the Activity application program on the mobile terminal based on android system designs testing mechanism structure And realize main interface module, the logical construction of entire testing mechanism can be divided into presentation layer, logical process layer and data storage Three layers of layer,
Presentation layer: providing the software interactive page of sender of the message, the setting page including software, message send the page with And map displayed page.
Logical process layer: being responsible for all data processings of the entire testing mechanism of system and data are sent.It is modified including parameter Processing, sender of the message and point distance measurement distance calculating, sender of the message positioning processing, message confidence level judgement.
Data storage layer: the reception and storage of the information reported information dissemination person are mainly realized.
Step 3, the pushed information testing mechanism based on three-point fox method, realizes the detection of pushed information,
Step 3.1, the user for opening application program is positioned, obtains location information, that is, passes through A position change condition is arranged in requestLocationUpdates () object.This condition includes what Location Request was initiated Least displacement variation when minimum interval and Location Request are initiated.The two conditions must simultaneously meet, and could execute Call back function, trigger position are monitored.Avoid repeated useless positioning.It is artificial to carry out removeUpdates () progress position The update of information, onResume are persistently tracked in (), close tracking in onPause () accordingly.
Step 3.2, when user sends message, judge whether message is empty, while query messages scene, avoids blank The transmission of information and invalid information;
Step 3.3, three-point fox method calculates measurement point distance, draws round.
Step 3.4, infomation detection proposes according to geometry scanning algorithm and reports message spot and message using calculating The distance between sender region algorithm.
Detection method is accepted and believed in the above-mentioned pushed information based on three-point fox method, the implementation of step 3.3 is to use hundred Ground picture circle API class Circle is spent to create round covering, and a circle can be increased by map.addOverlay (circle) Figure drawn by shape and other methods personal settings.
Detection method is accepted and believed in the above-mentioned pushed information based on three-point fox method, the implementation of step 3.4 is, according to several What scanning algorithm, is studied for the point of address space, and the invention proposes a kind of calculating report message spot and message The algorithm of distance between intelligencer region inputs three scouting point S1, S2, S3 and its distance between with sender of the message The distance between message spot and straight news reporting person region L can be obtained in L1, L2, L3, message spot P.
The present invention has the advantage that using this objective factor of location information in subjective message as evaluation reference, Without adding new evaluation criterion, the complexity of checkout procedure is reduced;It can also be applied in combination, have with other appraisement systems simultaneously There is scalability;With positioning function common in universal smart phone, so that this technology has good convenience, simultaneously The result of detection can be obtained when message sends and receives, and have timeliness;It is proposed the staging hierarchy to trust evaluation, Developing direction is provided for research later.
Detailed description of the invention
What the mapping module Android SDK of Fig. 1 embodiment of the present invention was provided exploits natural resources.
The message detection mechanism implementation flow chart based on three-point fox method of Fig. 2 embodiment of the present invention.
The basic framework figure of the Android platform of Fig. 3 embodiment of the present invention.
The Android engineering catalogue figure of Fig. 4 embodiment of the present invention.
The Android engineering catalogue of Fig. 5 embodiment of the present invention adds authority information figure.
Map OCX figure is added in the layout xml document of Fig. 6 embodiment of the present invention.
The life cycle figure of Fig. 7 embodiment of the present invention.
The introducing associated class figure of Fig. 8 embodiment of the present invention.
Fig. 9 embodiment of the present invention detects instant messages confidence level flow chart by three-point fox method.
The testing mechanism building-block of logic of Figure 10 embodiment of the present invention.
The experiment main interface figure of Figure 11 embodiment of the present invention.
The Baidu map of Figure 12 embodiment of the present invention picks up coordinate system figure.
The application setting page figure of Figure 13 embodiment of the present invention.
The setting measurement point coordinate of Figure 14 embodiment of the present invention is successfully schemed.
The reduction default measurement site coordinate of Figure 15 embodiment of the present invention is successfully schemed.
Figure 16 embodiment of the present invention avoids blank information and invalid information figure.
The message detection page figure of Figure 17 embodiment of the present invention.
" disaster scene " positioning webpage figure of Figure 18 embodiment of the present invention.
The circular cut line of Figure 19 embodiment of the present invention divides figure.
The two-dimensional geometry scanning figure of Figure 20 embodiment of the present invention.
The three-point fix algorithm scanning figure of Figure 21 embodiment of the present invention.
Wuhan University's test result figure of Figure 22 embodiment of the present invention.
Specific embodiment
The message detection mechanism implementation process based on three-point fox method that the present invention designs is shown in Fig. 2, can be by art technology Personnel use computer software technology implementation process automatic running.Embodiment the specific implementation process is as follows:
Step 1, android system exploitation environment, configuration Android exploitation environment and mapping module Android are built SDK;
Android exploitation environment is broadly divided into following 4 steps:
(1) JDK is installed, the variable environment of JDK on Windows is configured;
(2) downloading installation Eclipse, configuration surroundings variable;
(3) downloading installation Android SDK;
(4) ADT plug-in unit is installed for Eclipse.
JDK (Java SE Development Kit) is the Software Development Kit of Java language.JDK is Java exploitation The center of gravity of process includes performing environment (Java Runtime Environment), a series of Java exploitation of Java exploitation Tool and the java class library called of to developer's development and application program when.The basic tool that JDK includes is as shown in table 2, this A little tools can be checked inside the bin catalogue under the installation directory of JDK.
The basic tool that 2 Java SE Development Kit of table includes
Eclipse is cross-platform Integrated Development Environment, the IDE mainly developed for java application and Android, There are the interface largely customized and countless plug-in units.It is unziped to without being installed and thinks catalogue text to be mounted by Eclipse In part.Were it not for ready-made IDE (Integrated Development Environment, Integrated Development Environment, Referring mainly to can be with the application software of auxiliary development program), SDK complete packet can be directly downloaded.It is contained inside complete packet Eclipse does not need still further to download installation.
Android SDK is Android applied software development job contract tool, is provided needed for exploitation Android application program API library and establishment, test and debugging Android application program need developing instrument.
ADT (Android Developer Tools, Android developer tool), is in Eclipse Integrated Development Environment Carry out the plug-in unit of Android application and development.This plug-in unit is actually used to develop Android application namely on Eclipse The software tool of program.It can allow Eclipse and Android SDK to associate, and facilitate developer to carry out Android and answer With the exploitation and debugging of program.It is Eclipse 3.5.2 present invention primarily develop environment, the basic framework of Android platform is such as Shown in attached drawing 3.
Mapping module Android SDK is configured, attached drawing 4 illustrates the main engineering catalogue of Android.Wherein src file Folder is used to place java program source code, and assets file places the file being packed into application program as former state.File gen For storing Android developing instrument source file generated, under have a R.java file to be given birth to automatically by developing instrument At with maintenance, do not need us and create and modify.When needing to add reference document into res catalogue, R.java energy Enough it is automatically performed the addition of reference.Whether R.java can also use text under all res catalogues when determining program compiling simultaneously Part, the file being not used by will not be packaged into application program, optimized and executed space.Preceding several texts under res catalogue Part successively stores the picture file by different pixels according to filename, layout and values store respectively user interface file and The text used on interface.AndroidManifest.xml is function list file, here it may be seen that having in entire engineering How many activity, services, providers, receivers, and the security certificate uses-permission needed Deng.It is completing in the engineering of configuration of Android exploitation environment after the file of one libs of creation, the text in development kit Part is corresponding to be copied under libs catalogue and then is integrated into the engineering of oneself.
Show Baidu map, it first need to be in AndroidManifest plus information such as exploitation key, required permissions. Commonly required permission be mainly operator's informaiton, network positions, GPS positioning, Wi-Fi network information, Wi-Fi obtain permission simultaneously Map OCX is added in layout xml document.Such as attached drawing 5, shown in attached drawing 6.
That play the role of display in Android is one of four big main parts-Activity.Activity be in Android most One of basic composition component, it provides the interactive interface with user.A life cycle of Activity refers to it from wound It is built to the state of closing.Operation, state, state may be undergone in whole process altogether and destroys four kinds of states, such as 7 institute of attached drawing Show.
OnCreate () method will be used to carry out the initialization of Activity when Activity starts for the first time, this is one The starting of a Activity life cycle.Open application program when, need to run in order onCreateO, onStartO, These three methods of onResume (), this when, Activity was normally shown.If clicking rollback key at this moment, first OnPauseO, onStopO, onDestory () three methods are called afterwards, this application program will just terminate;If pressed at this moment Home key goes to open other application, this application program does not terminate or destroys, but successively performs onPause (), onStop () the two methods, are transformed to halted state.If being again turned on application program, it will run in order Three methods of onRestartO, onStartO, onResume () become operating status.
Baidu map must initialize the Context global variable of SDK reference when application program is established, in SDK Each functional unit is square using SDKInitializer.initialize (getApplicationContext ()) before calling Method.Map Activity is created, map life cycle is managed, is needed when opening through mMapView=(MapView) The introducing of findViewById (R.id.bmapView) acquisition to map control.For pause, stopping and three states are destroyed, Baidu map each provides mMapView.onPause (), mMapView.onResume (), mMapView.onDestroy (), three kinds of methods realized map life cycle management.Relevant class finally is introduced using import, as shown in Fig. 8.So far, Entire exploitation environment just all completed by configuration.
Step 2, the Activity application program on the mobile terminal based on android system designs testing mechanism structure And realize main interface module;
In view of the functional requirement of entire testing mechanism, we carry out the subdivision of module to entire testing mechanism.We will Logical construction is organized into individual, the relevant discrete layer of function, is subject to cohesion in main aspect, logical construction is allowed to become brighter Really.The logical construction of entire testing mechanism can be divided into presentation layer, logical process layer and three layers of data storage layer, such as Fig. 9 institute Show.
Presentation layer: providing the software interactive page of sender of the message, the setting page including software, message send the page with And map displayed page.
Logical process layer: being responsible for all data processings of the entire testing mechanism of system and data are sent.It is modified including parameter Processing, sender of the message and point distance measurement distance calculating, sender of the message positioning processing, message confidence level judgement.
Data storage layer: the reception and storage of the information reported information dissemination person are mainly realized.
Wherein data storage layer is mainly in server end.Wherein message id and intelligencer ID are integer type, by being System distributes in order when obtaining message and user's registration.Message sending time is DATETIME type, obtains information hair Server date and time when sending simultaneously are recorded.Message spot and message content are character type.In view of generally reporting Message without departing from character type data 8000 characters of longest limitation, therefore without using text-type data store, with Save memory space.Only there are two types of situations for Credibility judgement --- and message is suspicious and message is relatively reliable, therefore Boolean type data are just It can indicate.The reliability of the message of default is that FALSE is unreliable.
3 table data store of table
This testing mechanism is the progress design and implementation on the mobile terminal of android system.Android application program It is the entry file of all programs, but actually application program is a wide in range concept, there is no a reality therewith Corresponding interface.And in an application program, Activity just indicates a corresponding interface.The expansion of one Activity Exhibition is equivalent to an interface.Most of application program generally can all possess multiple interfaces, correspondingly, will include multiple in program Activity class.Therefore, from the perspective of actual displayed, MainActivity.java file is only the main interface of program.
Main interface of the present invention mainly completes two functions, and one of function is to complete three measurement points settings and to can connect Setting is applied by range delimitation, another function is to complete the transmission of instant messages.Attached drawing 11 illustrates the main boundary of program Face.
Setting in relation to three measurement points we be to pick up coordinate system by Baidu map to be chosen.Baidu map Picking up coordinate system is the precise positioning that user can be allowed easily to obtain some position in Baidu map that Baidu releases Geographical location information (being presented with latitude and longitude coordinates), as shown in figure 12.
Search is clicked after inputting the place for wanting search in search column, just will appear corresponding label on map, click it In some mark point, can see corresponding coordinate;Also list on the right side of the page simultaneously all places inquired and its Coordinate.In to the uncomprehending situation of specified place title, mouse is placed on map and slides, and mouse slides into each place, all The corresponding map reference of meeting simultaneous display, clicks selected coordinate, and the upper right corner will record lower selected coordinate in case use later.
Baidu map picks up coordinate system and additionally provides the anti-function of looking into of coordinate simultaneously.After selecting this function, searching The coordinate of known point is inputted in rope column, which can be shown on map.If coordinate resolution success, moreover it is possible to return to a ground Location.
The distance calculation formula of point-to-point transmission such as formula (1) is shown on map, wherein R=6370996.81, lng It (Longitude) is longitude, lat (Latitude) is latitude.
Because this experiment is mainly carried out in Wuhan City, Hubei Province, simultaneously because on map " least bit of difference, it is wrong with thousand In ", the measurement point for choosing school periphery is too close to be not easy to data resolution in data, therefore the present invention is at random in peripheral map On have chosen three measurement points (114.349802,30.535147), (114.363457,30.545038) and (114.404498, 30.511795)。
In the selection of acceptable distance range, we are using one commonly apart from interpretation pithy formula --- and " five clear six are not Clearly, seven skies eight are not empty, and km sees labour ", select 500 meters.The meaning of this pithy formula is exactly, people 500 meter Shi Ke of distance with The clothing and limb action worn by them distinguish gender, are just hard to tell men and women when distance increases to 600 meters;In distance When being 700 meters, it can be seen that the space generated of walking between two legs when other side walks, but cannot be seen at 800 meters;Away from Sit, stand and the amplitudes such as labour is bent over biggish movement change from can only see other side when being 1000 meters, 2000 meters when The body for waiting people is just a pore, and there is nothing, and method is distinguished.In order to refine the detection to instant messages, we It selects it can be seen that normal behaviour, distinguishing 500 meters of figure gender as acceptable distance range.
Above all default datas are all that can modify inside application setting as shown in figure 12.It is surveyed at three In the selection for measuring point, if guarantee the distance between two o'clock hundred meters or more (avoid there are non-valid measurement points), if disappeared Breath sender is formed by within triangle in three measurement points of selection, and the effect of measurement can be more.If to visual Instant messages to be subjected to distance range different, can also voluntarily be filled in, but the present invention still suggests 500 meters of phases of selection To accurate.Default data is configured successfully modified as shown in figure 14.Meanwhile if the data to setting are dissatisfied, it is desirable to It is reduced to initial setting up, also can choose reduction default coordinate, is restored successfully as shown in figure 15.
Step 3, the pushed information testing mechanism based on three-point fox method, realizes the detection of pushed information,
Step 3.1, the user for opening application program is positioned, obtains location information.Application program is opened in user When, we can position user, draw circle for calculating the distance of measurement point.Since the position of people can not It is disconnected to change, it would be desirable to which that a position change condition is arranged by requestLocationUpdates () object.This condition Least displacement variation when the minimum interval and Location Request initiated including Location Request are initiated.The two conditions must It must meet simultaneously, call back function could be executed, trigger position is monitored.In this way, we can be to avoid repeated useless fixed Position.It should be noted that we must manually carry out since we require constantly to obtain location updating removeUpdates().We only track in Activity operation, even if otherwise Activity all in It all closes, app continues to constantly updating location information.Will lead to application resource in this way can not be recovered.So Wo Men OnResume is persistently tracked in (), closes tracking in onPause () accordingly.
Step 3.2, when the user sends a message, judge whether message is empty, while query messages scene, avoids sky The transmission of white information and invalid information, as shown in figure 16.When inquiring address due to routine use Baidu map, often it will appear more Query result.For the present invention at query messages spot, in order to avoid the diversity of query result, default chooses query result In first result as message scene.Therefore, if to guarantee that the accuracy of address occurs for message, message is sent When, address write more detailed query result just can be closer to destination address.
Step 3.3, measurement point distance is calculated, is drawn round.Baidu map is provided picture circle API class Circle (center:Point, radius:Number [, opts:CircleOptions]) creates round covering, as long as incoming circle Center longitude, circle radius can realize picture circle.A circle can be newly increased by map.addOverlay (circle) Shape, while the methods of additionally providing circle.setFillColor (), circle.setStrokeColor () and carrying out personalized set Set drawn figure.
Step 3.4, infomation detection proposes according to geometry scanning algorithm and reports message spot and message using calculating The distance between sender region algorithm.
Difficult point of the invention is primarily present in how to judge sender of the message region and whether report message spot Within an acceptable range.Calculated sender of the message region is existing for affirmative.The region is that three circles intersect to form Region, may be just like four kinds of situations shown in Figure 17.Region shown in Figure 17 is subjected to completion completely available Figure 18, Blacking part shows the intersecting area designed before completion.As can be seen that Figure 17 a, 17b, 17c respectively with Figure 18 a, 18b, 18c is corresponded to each other, Figure 17 d then two kinds of situations of corresponding diagram 18d, 18e.All sum up in fact in Figure 18 a, 18b, 18d these three situations Arrived a kind of this situation of Figure 18 a, and there is no the regions intersected jointly for three circles in fact for Figure 18 c such case, with us it Preceding obtained " calculated sender of the message region is existing for affirmative " viewpoint is significantly different, therefore such case is simultaneously It is not included into inside the range that the present invention is discussed.So only both feelings of Figure 18 a and Figure 18 e being discussed needed for the present invention Condition.Since a) and e) both of these case is shown in Figure 18 common region is not the polygon of standard, do not handle directly Method, therefore we need to these regions carry out approximate processing.From Figure 19 it will be seen that three circles were intersected Within the rectangle that tetra- straight lines of L1, L2, L3, L4 delimited in figure of region, wherein L1 is three round Far Lefts respectively Point near the right point the circle based on the point tangent line, L2 be in the point of three round rightmosts respectively near Circle tangent line based on the point of the point on the nearly left side, L3 are in three round nethermost points respectively near point above The tangent line of the circle based on the point, L4 are near following point in three round uppermost points respectively based on the point The tangent line of the circle.This four tangent lines just contain the region that three circles are intersected.Equally, such case is for Figure 18 e It is equally applicable, therefore we reduce the range that we require to look up using this rectangle.
Point in view of this algorithm mainly for map two-dimensional space is studied, and the present invention is with reference to similar calculation Method --- geometry scanning algorithm.In geometric algorithm, the main object of consideration is usually two dimension, three-dimensional either more higher dimensional space In point, line segment, polygon and other solids.Sometimes the solution of a problem needs the input pair provided by " scanning " As collecting information to find feasible solution.This technology is referred to as flat scanning in two-dimensional surface, in three-dimensional space Between on then be referred to as spacescan.In its simple form, a vertical straight line is scanned from left to right in the plane, It is stayed at each object (such as a point), since the object of the leftmost side, scans the object surveyed to the end to the right always.
For example, finding out the maximal point in set in one the provided in the plane set S for having n point.It can be first in S All points according to their x coordinate carry out non-ascending order arrangement (if two point x coordinates having the same, will have compared with The point of big y-coordinate value is arranged in front), then the point of the rightmost side is undoubtedly a maximal point, because it has maximum x coordinate Value.According to geometry scanning algorithm, these points are scanned to the left from the rightmost side, while determining whether the y-coordinate of these points is maximum. Entire algorithmic procedure is as shown in figure 20, and Maximal plus algebra { a, b, c, d, e } forms the shape of a ladder.
The present invention proposes following algorithm according to the above geometry scanning algorithm to calculate report message spot and message hair The distance between the person of sending region.
The process of algorithm is as shown in figure 21.All y-coordinate values of scanning are surveyed scan line x coordinate value where PL to the right to exist At point to the tangent line of x coordinate value where PR between PD and the y-coordinate value of PU, the range whether point intersects in three circles is judged It is interior.For each point under x coordinate in three round intersecting ranges, calculates separately minimum and maximum two points of y-coordinate value and disappear Cease the distance between spot, the scanning after recording minimum range therein and continuing, until entire scanning process knot Beam, the minimum range finally obtained exactly report the distance between message spot and sender of the message region.Message hair There are three types of situations for the position of Radix Rehmanniae: above L4;Below L3;Between L3 and L4.According to different situations, for same X value, it would be desirable to shown in the y value such as formula (2) being scanned.
As PDy < Py < PU.y, y value direction needs first to scan up since PD.y to first in intersection model Interior point y1 is enclosed, is then scanned downwards since PU.y to first point y2 in intersecting ranges.
(1) if P.y >=y2, minimum distance is the distance between y2 and P at this time;
(2) if P.y < y1, minimum distance is the distance between y1 and P at this time;
(3) if y1≤P.y < y2, minimum distance is the distance between point (x, P.y) and P at this time.
Three circles shown on map for according to the coordinate of three measurement points and with the distance between sender of the message institute It draws, click " scouting point 1 ", " scouting point 2 ", " scouting point 3 " can navigate to corresponding positions of three measurement points on map respectively It sets.Figure 22, which is illustrated, sends the test result in relation to the unity and coherence in writing department of the Chinese Academy of Sciences, Wuhan University message in the information department of the Chinese Academy of Sciences, Wuhan University.
It is described in the present invention that specific embodiments are merely illustrative of the spirit of the present invention.Technology belonging to the present invention The technical staff in field can make various modifications or additions to the described embodiments or by a similar method Substitution, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.

Claims (2)

1. a kind of pushed information based on three-point fox method accepts and believe detection method, characterized in that the following steps are included:
Step 1, android system exploitation environment is built, specifically:
Configure Android and develop environment: secondly the variable environment of JDK on installation JDK configuration Windows is downloaded Eclipse and is matched Environmental variance is set, then downloading installation Android SDK, finally installs ADT plug-in unit for Eclipse
Mapping module Android SDK: creating the file of a libs in engineering, the corresponding duplication of file in development kit It is then integrated into the engineering of oneself under to libs catalogue;
Step 2, the Activity application program on the mobile terminal based on android system, design testing mechanism structure are simultaneously real Existing main interface module, the logical construction of entire testing mechanism can be divided into presentation layer, logical process layer and data storage layer three Layer,
Presentation layer: providing the software interactive page of sender of the message, and the setting page, message including software send the page and ground Figure displayed page;
Logical process layer: being responsible for all data processings of the entire testing mechanism of system and data are sent;Place including parameter modification Reason, the calculating of sender of the message and point distance measurement distance, the processing of sender of the message's positioning, the judgement of message confidence level;
Data storage layer: the reception and storage of the information reported information dissemination person are mainly realized;
Step 3, the pushed information testing mechanism based on three-point fox method, realizes the detection of pushed information,
Step 3.1, the user for opening application program is positioned, obtains location information, that is, passes through A position change condition is arranged in requestLocationUpdates () object;This condition includes what Location Request was initiated Least displacement variation when minimum interval and Location Request are initiated;The two conditions must simultaneously meet, and could execute Call back function, trigger position are monitored;Avoid repeated useless positioning;It is artificial to carry out removeUpdates () progress position The update of information, onResume are persistently tracked in (), close tracking in onPause () accordingly;
Step 3.2, when user sends message, judge whether message is empty, while query messages scene, avoids blank information With the transmission of invalid information;
Step 3.3, three-point fox method calculates measurement point distance, draws round;
Step 3.4, infomation detection proposes according to geometry scanning algorithm and reports that message spot and message are sent using calculating The distance between person region algorithm;It according to geometry scanning algorithm, is studied for the point of address space, input three is detectd It examines point S1, S2, S3 and its message spot can be obtained with the distance between sender of the message L1, L2, L3, message spot P The distance between straight news reporting person region L, specifically:
Surveyed to the right scan line x coordinate value where the PL scan point of all y-coordinate values between PD and the y-coordinate value of PU to Where PR at the tangent line of x coordinate value, the point is judged whether in the range of three circle intersections, for each three under x coordinate Point in circle intersecting ranges, calculates separately the distance between minimum and maximum two points of y-coordinate value and message spot, records it In minimum range and the scanning after continuing, until entire scanning process terminates, the minimum range finally obtained is exactly Report the distance between message spot and sender of the message region.
2. the pushed information based on three-point fox method accepts and believe detection method according to claim 1, it is characterized in that: step 3.3 Implementation be to draw circle API class Circle using Baidu map and create round covering, pass through map.addOverlay (circle) circle can be increased.
CN201710277470.6A 2017-04-25 2017-04-25 A kind of pushed information based on three-point fox method accepts and believe detection method Expired - Fee Related CN107203592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710277470.6A CN107203592B (en) 2017-04-25 2017-04-25 A kind of pushed information based on three-point fox method accepts and believe detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710277470.6A CN107203592B (en) 2017-04-25 2017-04-25 A kind of pushed information based on three-point fox method accepts and believe detection method

Publications (2)

Publication Number Publication Date
CN107203592A CN107203592A (en) 2017-09-26
CN107203592B true CN107203592B (en) 2019-11-22

Family

ID=59905535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710277470.6A Expired - Fee Related CN107203592B (en) 2017-04-25 2017-04-25 A kind of pushed information based on three-point fox method accepts and believe detection method

Country Status (1)

Country Link
CN (1) CN107203592B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055276B (en) * 2021-03-09 2022-07-22 井冈山大学 Ring chat creating method, display method and system based on smart phone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945258A (en) * 2012-10-18 2013-02-27 北京淘友天下科技发展有限公司 Method and system for obtaining reliability of users in social networking services
EP2832577A2 (en) * 2013-07-30 2015-02-04 HERE Global B.V. Detecting sobriety or driving condition using a mobile device
CN104462282A (en) * 2014-11-26 2015-03-25 百度在线网络技术(北京)有限公司 Information searching method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080126535A1 (en) * 2006-11-28 2008-05-29 Yinjun Zhu User plane location services over session initiation protocol (SIP)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945258A (en) * 2012-10-18 2013-02-27 北京淘友天下科技发展有限公司 Method and system for obtaining reliability of users in social networking services
EP2832577A2 (en) * 2013-07-30 2015-02-04 HERE Global B.V. Detecting sobriety or driving condition using a mobile device
CN104462282A (en) * 2014-11-26 2015-03-25 百度在线网络技术(北京)有限公司 Information searching method and device

Also Published As

Publication number Publication date
CN107203592A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
Burigat et al. Location-aware visualization of VRML models in GPS-based mobile guides
Simon et al. A mobile application framework for the geospatial web
CN106415305B (en) Position error radius determines
CN103814397A (en) Mobile device based content mapping for augmented reality environment
CA2829346A1 (en) Method and apparatus building and asset management
CN111881377B (en) Method and device for processing position interest points
Zhu et al. 3D Terrain visualization for Web GIS
CN108108489A (en) POI search methods and device based on geographical location
Batty et al. Data mash-ups and the future of mapping
Kadi et al. Mobile application development with augmented reality for promoting tourism objects in Southwest Sumba
CN107203592B (en) A kind of pushed information based on three-point fox method accepts and believe detection method
Zhou et al. Customizing visualization in three-dimensional urban GIS via web-based interaction
Sudiartha et al. Design And Implementation of Group Tourist Monitoring Application With Realtime Database Firebase
Yasuoka et al. The advancement of world digital cities
Sanjaya et al. GIS Android mobile based Software Development for Tourism Objects, Public Places list, Transportations list, and Culinary Places list Using Usability Measurement
Nordan An investigation of potential methods for topology preservation in interactive vector tile map applications
Yan et al. Design and implementation of a mobile gis for field data collection
Beeharee et al. Filtering location-based information using visibility
Amundsen Using the Geographical Location of Photos in Mobile Phones
Loppies et al. Android-Based Geographic Information System in Mapping Location of Health Facilities and Infrastructure in Merauke District
Graça et al. Worldplus: An augmented reality application with georeferenced content for smartphones-the Android example
Niu et al. Considering common data model for indoor location-aware services
Srinivasan Location based services to improve public transportation
Tan et al. Location aware applications for smart cities with Google maps and GIS tools.
Horling et al. Adapting a commercial simulation framework to the needs of information fusion research

Legal Events

Date Code Title Description
PB01 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191122

Termination date: 20210425