Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a method and an apparatus for making friends based on an electronic map, so as to facilitate offline meeting when a plurality of users have matching locations and times.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides an electronic map-based friend making method, which is applied to a server and a client that are in communication connection with each other, where the method includes:
after the client starts the electronic map, determining a map area displayed on a display screen of the client by the electronic map, and sending the map area to the server, wherein the map area displayed on the display screen refers to an area automatically displayed by the display screen after the electronic map is started or a map area displayed by the display screen after a user positions a destination on the map;
the server searches future target areas or/and current positions uploaded by different users through other clients and stored in a database, and screens out future active users or/and current active users of the map area, wherein the future active users of the map area refer to users whose set future target areas fall into the map area, the future target areas refer to areas which are uploaded by the users at the clients and are expected to perform offline activities in a future period of time, and the current active users of the map area refer to users whose current geographic positions fall into the map area;
the server side obtains the number of users in which the future target areas included in different areas fall or/and the number of users in which the current positions fall according to the future target areas set by the screened future active users or/and the specific positions of the current active users in the map area, obtains the density information of the future active users or/and the density information of the current active users in each area in the map area according to the number, and sends the density information to the client side;
the client displays identification information used for indicating the future active user density of each corresponding area or/and identification information used for indicating the current active user density of each corresponding area in each area of the map area;
the client side responds to a touch gesture operation of a user on a map area displayed on the display screen to determine a future target area or/and a current target area;
the client uploads the future target area or/and the current target area to the server;
the server compares the future target area uploaded by the client with the future target areas uploaded by other clients, and sends personal information of the opposite user to the client corresponding to one or both of the users with the area intersection when the area intersection exists, wherein the personal information of the users comprises the background information of the users; the server also compares the current target area uploaded by the client with the current positions uploaded by other clients, and when the current positions of other clients fall into the current target area, the server sends the personal information of the users of other clients to the client;
and the server initiates a friend application or an offline activity invitation to the selected opposite user after receiving the selection operation of the user on the client for the opposite user who is willing to socialize.
Preferably, the server is further configured to receive a time period determined by the client in response to the operation of the user, and upload the time period to the server;
the server screens out other users with time intersection with the time period uploaded by the users, the server screens out future active users with future target areas falling into the map area from the other users with time intersection, the server performs data analysis according to the future target areas set by the screened future active users, the server obtains the number of the users with the future target areas falling into the map area on the map area according to the specific position of the future target areas set by the screened future active users in the map area, and obtains the density information of the future active users of each area in the map area according to the number, wherein the future active users of the map area refer to the users with the set future target areas falling into the map area, the future target area is an area which is uploaded by a user at a client and is expected to perform offline activities in a future period of time;
the server compares the time period uploaded by the client with other time periods uploaded by other clients, and if the other time periods and the time periods contain time intersection, the server sends personal information of the opposite user to the client corresponding to the users who have the time intersection and the future target area intersection at the same time;
and the server initiates a friend application or an offline activity invitation to the selected opposite user after receiving the selection operation of the user on the client for the opposite user who is willing to socialize.
Preferably, the method further comprises the step of automatically uploading the current location, the step comprising:
the client detects the motion state of the user according to the acceleration sensor, judges that the motion state of the user is running when the acceleration in the vertical direction detected by the acceleration sensor is in continuous and regular reciprocating change, uploads the position information of the user at the moment as the current motion position to the server, and the current motion position is used for inviting other users with the same motion hobbies.
In a second aspect, an embodiment of the present invention provides an electronic map-based friend making apparatus, applied to a client communicatively connected to a service end, where the electronic map-based friend making apparatus includes:
the map area determining module is used for determining a map area displayed on a display screen of the client side of the electronic map after the electronic map is started, and sending the map area to the server side, wherein the map area displayed on the display screen refers to an area automatically displayed by the display screen after the electronic map is started or a map area displayed by the display screen after a user positions a destination on the map;
the identification information display module is used for receiving density information of future active users or/and density information of current active users of each area in the map area, which is sent by the server, and displaying the identification information used for indicating the density of the future active users or/and the density information of the current active users in the corresponding area in each area of the map area displayed on the display screen, wherein the future active users refer to users with future target areas in the map area; the current active user refers to a user with a current position in the map area;
the area determination module is used for responding to touch gesture operation of a user on the map area displayed on the display screen and determining a future target area or/and a current target area on the map area displayed on the display screen;
the uploading module is used for uploading the future target area or/and the current target area generated by the area determining module to a server, and also used for uploading friend applications or offline activity offers of the opposite user who wishes to perform social contact;
the receiving module is used for comparing the future target area uploaded by the user with the future target areas uploaded by other users by the server, when an area intersection exists, the server sends the personal information of the opposite user to the client, and receives the selection operation of the user on the friend making object of the opposite user who is willing to carry out social contact, or/and when the current position of the other user falls into the current target area, the server sends the personal information of the other user to the client, wherein the personal information of the user comprises the background information of the user.
Preferably, the apparatus further comprises:
the module is uploaded automatically to the current position for upload user's current position automatically, detect user's motion state according to acceleration sensor, wherein, to the module of discerning the motion state of running including: when the acceleration in the vertical direction detected by the acceleration sensor is in continuous and regular reciprocating change, judging that the motion state of the user is running, and uploading the position information of the user at the moment to a server by the client as a current motion position, wherein the current motion position is used for inviting other users with the same motion hobbies;
in a third aspect, an embodiment of the present invention provides an electronic map-based friend making device, which is applied to a server communicatively connected to a client, where the electronic map-based friend making device includes:
the map area receiving module is used for receiving a map area which is sent by the client and displayed on a display screen, wherein the map area displayed on the display screen refers to an area which is automatically displayed by the display screen after the electronic map is started or a map area which is displayed by the display screen after a user positions a destination on the map;
the screening module is used for screening out future active users or/and current active users of the map area, wherein the future active users of the map area refer to users whose set future target areas fall into the map area, the future target areas refer to areas which are uploaded by users and expected to perform offline activities in a future period of time, and the current active users refer to users whose current positions fall into the map area;
the identification information generation module is used for obtaining the number of users of which the current positions in different areas fall into the area or/and the number of users of which the future target areas fall into the area for the screened specific positions of the current position of the current active user in the map area or/and the specific positions of the future target areas of the future active user in the map area, obtaining the density information of the current active user in each area in the map area or/and the density information of the future active user according to the number, and sending the density information to the client;
the acquisition module is used for acquiring a future target area or/and a current target area determined by a user through touch gesture operation on an electronic map of the client;
the matching module is used for judging whether the future target area and the future target area uploaded by other users have an area intersection or/and whether the current positions of other users fall into the current target area of the user;
a sending module, configured to send, to a client of one or both of users who have an area intersection therebetween when the future target area uploaded by the user has an area intersection with a future target area uploaded by another user, personal information of an opposite user, or/and send, to the user client, personal information of another user when a current location of the other user falls within a current target area of the user, where the personal information of the user includes background information of the user;
and the friend making request sending module is used for initiating friend application or offline activity invitation to the selected opposite user after receiving the selection operation of the user on the opposite user who is willing to carry out social contact on the client.
Preferably, the obtaining module is further configured to obtain a time period sent by the client, where the time period is determined by the client responding to an operation of the user;
the screening module is further used for screening future active users of the map area with time intersection with the time period uploaded by the user, wherein the future active users of the map area refer to users whose set future target areas fall into the map area, and the future target areas are areas which are uploaded by the user at the client and are expected to perform offline activities in a future time period;
the identification information generation module is further configured to perform data analysis on the screened future target areas of the users with time intersection, and the server obtains, on the map area, the number of users in which the future target areas included in different areas fall according to specific positions of the future target areas set by the screened future active users in the map area, and obtains density information of the future active users in each area in the map area according to the number;
the sending module is further configured to send the personal information of the opposite user to the client of the user who has the time intersection and the future target area intersection at the same time, where the personal information of the user includes the background information of the user.
According to the friend making method and device based on the electronic map, the server side screens out future active users or/and current active users in a map area displayed on a display screen from future target areas or/and current positions uploaded by a plurality of client sides, and according to distribution of the future active users or/and the current active users in the map area, the density of the future active users or/and the density of the current active users in each area are displayed in the map area by adopting identification information. The user can intuitively know the distribution situation of future active users or/and current active users in the map area through the identification information on the display screen, so that the user can conveniently perform the next operation of delimiting the area on the electronic map. The method comprises the steps that a server receives a future target area or/and a current target area determined by a user through a touch gesture, the future target area or/and the current target area is compared with future target areas or/and current positions uploaded by other clients, when the future target area has an area intersection with the future target areas of other users or the current positions of the other users are located in the current target area, the server sends personal information of opposite users to the client of the user with the future target area intersection, or/and when the current positions of the other users fall into the current target area of the user, the server sends the personal information of the other users to the client for the reference and selection of the user. The method can provide a simple and convenient friend making way for the client, the client can visually know the density of future active users or current active users in each area of the electronic map through the identification information of the electronic map, reference is provided for the user to select the area, and the success probability of making friends is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the invention as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without any inventive step, are intended to be protected by the present invention.
The friend making method based on the electronic map provided by the embodiment of the invention is applied to the offline meeting of the user negotiation or the online friend searching of the user. For example, a plurality of online clients can obtain the distribution status of future active users or current active users in a displayed map area by checking different identification information of each area in the map area displayed on the display screen, and according to the distribution status, the users set areas on the electronic map, and the opposite users with intersection between the future target area and the set area and the opposite users with current positions of the users in the set area can be added together to form friends.
First embodiment
Please refer to fig. 1, which is a flowchart illustrating a friend-making method applied to a server and a client according to a preferred embodiment of the present invention. The specific process and steps shown in FIG. 1 will be described in detail below.
Step S401, after the client starts the electronic map, determining a map area displayed on a display screen of the client by the electronic map, and sending the map area to the server.
In this embodiment, the map area displayed on the display screen of the client may be an area automatically displayed on the display screen after the electronic map is started, that is, the map area corresponding to the positioning position as the current position; or a map area displayed on the display screen after the user locates a destination on the map.
Specifically, the map area refers to an area determined by four vertexes of the electronic map when the electronic map is displayed on the display screen. The client can obtain longitude and latitude information corresponding to the four vertexes according to the displayed map area, and sends the longitude and latitude information corresponding to the four vertexes to the server.
Step S402, the server searches future target areas uploaded by different users through other clients and/or current positions of other clients stored in a database, and the server screens out future active users or/and current active users of the map area.
In this embodiment, after receiving longitude and latitude information corresponding to four vertices of a map area sent by the client, the server searches, from a database, for a future active user whose future target area falls within the map area displayed on the display screen or/and a current active user whose current position falls within the map area displayed on the display screen. The future active users of the map area refer to users whose set future target areas fall into the map area, and the future target areas are areas which are uploaded by the users at the client and are expected to perform offline activities in a future period of time.
In a preferred implementation manner of this embodiment, whether the future target area falls into the map area displayed on the display screen may be determined by adopting whether the geometric center point of the future target area falls into the map area displayed on the display screen. For example, the future target area is considered to fall within the map area displayed on the display screen when the geometric center of the future target area is located within the map area, and not otherwise. The method for calculating the geometric center of the future target area may be obtained by using an algorithm for calculating the geometric center of a closed area or a closed curve in the prior art, and will not be described in detail herein.
Step S403, the server obtains, on the map area, the number of users whose future target areas included in different areas fall into the map area or/and the number of users whose current positions fall into the map area according to the future target area set by the screened future active users or/and the specific position of the current active user in the map area, obtains, according to the number, density information of future active users or/and density information of the current active user in each area in the map area, and sends the density information to the client.
Step S404, the client displays, in each area of the map area, identification information indicating a future active user density or/and identification information indicating a current active user density of each area.
In the implementation method of the identification information in this embodiment, please refer to fig. 2, a semi-transparent or transparent layer is added to the electronic map on the client, and the density of future active users or/and the density of current active users in each area of the electronic map is indicated by using color information in the semi-transparent or transparent layer.
In particular, different colors or different concentrations of the same color may be used to represent different densities of future active users within the respective region. In this embodiment, it is preferable to use different densities of the same color to represent the density of the future active users, and generally, the darker the color of the layer, the more future active users selecting the area are represented, and conversely, the lighter the color, the less future active users selecting the area are represented.
In another implementation manner of this embodiment, please refer to fig. 3, the density of the pushpins may also be used to indicate the density of future active users or/and the density of current active users in each area of the electronic map. The density of the pushpins is in direct proportion to the density of future active users or/and the density setting of the current active users.
In step S405, the client determines a future target area or/and a current target area in response to a touch gesture operation of a user on a map area displayed on the display screen.
The user's operation on the electronic map can be obtained by means of a finger or a touch-screen pen. The embodiment of the invention does not limit the acquisition mode of the region. The setting of the area will be described below by way of a few examples.
Referring to fig. 4, the touch gesture operation of the user obtained by the client is an operation track that the user strokes on the electronic map through a finger, the operation track is a closed curve, the closed curve is a closed area that can be enclosed by the closed curve, and the client determines that the closed area enclosed by the closed curve is the area. Of course, a user may not draw a closed curve every time in the operation process, and sometimes the curves cross end to end, or the drawn curves cannot generate an intersection point, so that the closed region cannot be determined. For example, referring to fig. 5, in the operation trajectory obtained by the client, after an intersection point is generated between one end of the curve and the other end of the curve, one end of the curve still extends out of a portion, at this time, the client deletes the portion extending out of one end of the curve, a closed curve is left, and the client determines that the closed area surrounded by the closed curve is an area. Referring to fig. 6, in the operation trajectory of the user obtained by the client, after an intersection point is generated between one end of the curve and the other end of the curve, a part of the curve extends out from one end and the other end of the curve, at this time, the client deletes the parts extending out from the two ends of the curve, a closed curve is left, and the client determines that the closed area surrounded by the closed curve is an area. Referring to fig. 7, in the operation trajectory of the user obtained by the client, there is no intersection point between one end of the curve and the other end of the curve, and a closed region cannot be formed, at this time, the client generates a line forming a closed region with the operation trajectory according to a preset algorithm, complements the curve by the generated line, and forms a closed curve by the curve, where the generated line may be a straight line or a curved line, and preferably, the client determines that the closed region surrounded by the complemented closed curve is a region. In addition, referring to fig. 8, in the operation trajectory of the user obtained by the client, two closed areas enclosed by the curve are included, at this time, the client prompts the user to perform the operation again, and it is easy to understand that when the number of the closed areas enclosed by the curve is greater than two, the client also prompts the user to perform the operation again.
The setting of the area may also be obtained in other manners, for example, please refer to fig. 9, the client obtains a point selected by the user on the electronic map, the point may be generated by the user clicking on a touch screen of the client, and the point may be represented on the touch screen in the form of a pin, a mark or other shapes. When the point selected by the user is a point, the client uses the point as a circle center, and a set value is a radius or a diameter, and calculates a closed circumferential area on the electronic map, where the set value may be a value preset by the user or a value input by the user after the circle center is determined, as shown in fig. 10, in a case where the set value is input by the user after the circle center is determined, the client prompts the user to input a radius value or a diameter value, and the user inputs the radius according to the interface shown in fig. 11. Referring to fig. 12, after the user selects and inputs the radius value or the diameter value, the client obtains the radius value or the diameter value, and obtains a closed circumferential area from the obtained radius value or the diameter value on the electronic map with the obtained point as a center of a circle, and the client determines the circumferential area as the area. Referring to fig. 13, the radius value or diameter value of the circumferential area may be generated by sliding on the electronic map using a point selected by the user as a starting point, and a distance between the sliding end point and the starting point may be the radius value or diameter value of the circumferential area.
Referring to fig. 14, when the points selected by the user are two points, the client uses a straight line formed by connecting the two points selected by the user as a diameter or a radius, specifically referring to fig. 15, then calculates a closed circumferential area on the electronic map with any point on the straight line as a center of circle, and the client determines the circumferential area as an area. Referring to fig. 16, when the point selected by the user is 3 points, the client encloses the three points on the electronic map into a closed triangular area, and the client determines the triangular area as the area.
Referring to fig. 17, further, the area may be generated by obtaining, by the client, a pressure value or an area of a certain pressing position on the electronic map by the user, extending outward according to a preset geometric shape on the electronic map by taking the pressing position of the user as a geometric center point on the electronic map according to the pressure value or the area, and when the user stops pressing the electronic map, the client controls the geometric shape to stop extending, so as to obtain a closed area, and determines that the closed area is the area, as shown in fig. 18.
It should be noted that the preset geometric shape may be any shape predefined by the user, such as a circle, a rectangle, a hexagon, etc., and the geometric shape shown in fig. 19 is a hexagon. In addition, the invention does not limit the form of the geometric extension, for example, the geometric extension may be proportional to the pressure value/area of the electronic map pressed by the user, and the larger the pressure value/area of the electronic screen pressed by the user is, the faster the geometric extension speed is, or the larger the area of the geometric extension is; the form in which the geometric shapes extend outward may also be such that, as long as the user has a press on the electronic map, the geometric shapes extend outward until the user stops pressing on the electronic map.
In summary, the generation form of the area can be realized in various ways, and the embodiment of the present invention does not limit the way in which the user sets the area.
S406, the client uploads the future target area or/and the current target area to the server.
After the area is set, the client generates data corresponding to the area, and uploads the area to the server, wherein the uploading mode can be realized through a wireless network or a wired network.
S407, the server compares the future target area or/and the current target area uploaded by the client with the future target areas uploaded by other clients or/and the current positions of other clients.
S408, comparing whether the future target area has an area intersection or/and whether the current position falls into the current target area, if the future target area uploaded by the client has an area intersection with the future target areas uploaded by other clients, the process goes to step S409, and if no area intersection exists, the process is ended. Or/and if the current position of the other user falls into the current target area of the user, the process goes to step S409, otherwise, the process ends.
S409, the server side sends personal information of the user of the other side to the client side corresponding to one or both of the users with the area intersection, or/and the server side sends the personal information of the user with the current position falling into the current target area to the client side of the user, wherein the personal information of the user comprises the background information of the user.
S410, after receiving the selection operation of the user on the client to the opposite user who is willing to carry out social contact, the server initiates a friend application or an offline activity invitation to the selected opposite user.
After receiving friend applications or offline activity offers of other users, the opposite user can perform offline activities with other users.
Referring to fig. 20, before step S402, step S411 is preferably further included: the client determines a period of time in response to a user's operation.
Step S402 includes: and the server side obtains the future active users in the map area according to the time period uploaded by the user and the future target area and time period uploaded by other users.
Specifically, the server screens out other users having a time intersection with the time period uploaded by the user, and the server screens out future active users having future target areas falling into the map area from the other users having the time intersection.
The server side carries out data analysis according to the future target area set by the screened future active users, obtains the number of users in which the future target areas contained in different areas fall on the map area according to the specific position of the future target area set by the screened future active users in the map area, and obtains the density information of the future active users in each area in the map area according to the number. The future active users of the map area refer to users whose set future target areas fall into the map area, and the future target areas are areas which are uploaded by the users at the client and are expected to perform offline activities in a future period of time.
Step S406 includes: and the client uploads the future target area and the time period to the server.
Step S407 includes: the server compares the future target area and the time period uploaded by the client with other future target areas and time periods uploaded by other clients.
Step S408 includes: a comparison is made as to whether there is both a region intersection and a time intersection. If there is both an area intersection and a time intersection, the process proceeds to step S409, and if not, the process ends.
Step S409 includes: and the server side sends the personal information of the opposite user to the client side corresponding to the users which have the time intersection and the area intersection simultaneously.
Step S410 includes: and the server initiates a friend application or an offline activity invitation to the selected opposite user after receiving the selection operation of the user on the client for the opposite user who is willing to socialize.
After receiving friend applications or offline activity offers of other users, the opposite user can perform offline activities with other users.
In the implementation, time selection is added, so that a user can select a proper time and place to make friends according to the self condition in the friend making process, and the method is more targeted.
In summary, in the friend making method based on the electronic map provided in the embodiment of the present invention, the server filters the future target area or/and the current position uploaded by the client, screens out the user whose future target area or/and current position falls into the map area, provides the identification information for indicating the density of the future active users in each area or/and the identification information of the current active user density on the electronic map according to the screening result, and displays the identification information on the electronic map for the user to refer to so as to select the area. The user sets a future target area and a time period through the client, and the server compares the future target area and the time period uploaded by each client and sends prompt information to the client with the area intersection and the time intersection at the same time to promote the offline meeting or friend recommendation. The method effectively solves the problem that the online friend appoints the inconvenient place and time for meeting the line, provides an online friend-searching mode capable of improving the success probability of making friends, and searches friends by setting a future active area on an electronic map displaying the distribution condition of future active users through time.
Second embodiment
Fig. 21 is a functional block diagram of a second friend-making device 210 applied to a client according to an embodiment of the present invention. The second friend making device 210 is configured to execute steps S401 and S404 to S406 in the flowchart shown in fig. 1. The second friend making device 210 includes a map area determination module 2101, an identification information display module 2102, an area determination module 2103, an upload module 2104, and a reception module 2105.
The map area determining module 2101 is configured to determine a map area displayed on a display screen of a client of the electronic map after the electronic map is started, and send the map area to a server. The map area displayed on the display screen refers to an area automatically displayed by the display screen after the electronic map is started, or a map area displayed by the display screen after a user positions a destination on the map.
The identification information display module 2102 is configured to receive density information of future active users or/and density information of current active users of each area in the map area, where the density information is sent by the server. And displaying identification information used for indicating the density of the future active users in the corresponding area or/and the density information of the current active users in each area of the map area displayed on the display screen. The future active users refer to users with future target areas in the map area, and the current active users refer to users with current positions falling in the current target areas.
The area determination module 2103 is configured to determine a future target area or/and a current target area on a map area displayed on the display screen in response to a touch gesture operation performed by a user on the map area displayed on the display screen.
The uploading module 2104 is configured to upload the future target area or/and the current location generated by the area determining module to a server, and also configured to upload a friend application or an offline activity offer of an opposite user who wishes to perform social contact.
The receiving module 2105 is configured to, when the future target area uploaded by the user and the future target area uploaded by another user have an area intersection, or/and the current geographic location of another user falls within the current target area uploaded by the user, send, by the server, personal information of the peer user to the client, and receive a selection operation of the peer user who is willing to perform social contact as a friend making object by the user, where the personal information of the user includes background information of the user.
Preferably, referring to fig. 22, the second friend making device 210 further includes a time period determining module 2106 for determining a time period in response to a user operation. The uploading module 2104 is further configured to upload the time period to the server, and the server generates future active user density information of the corresponding map area in the specified time period according to the time period uploaded by the user and the future target area. The receiving module 2105 is further configured to receive a prompt message sent by the server when it is determined that an intersection exists between the time slot and the other time slots after the time slot is compared with the time slots uploaded by the other clients.
As an embodiment, referring to fig. 23, the second friend making device 210 further includes a track obtaining module 2107 and a track determining module 2108. The track acquiring module 2107 is configured to acquire an operation track of the touch gesture operation. The trajectory determination module 2108 is configured to determine a shape of the operation trajectory acquired by the trajectory acquisition module 2107. When the operation trajectory forms an enclosed area, the area determination module 2103 determines that the enclosed area is the area. When the operation track of the user is a line crossing end to end, the area determining module 2103 deletes the crossing portion of the line to obtain a closed line, and the area determining module 2103 determines that the closed area surrounded by the closed line is an area. When the operation trajectory does not form a closed region, the region determining module 2103 generates a line forming a closed region with the operation trajectory according to a preset algorithm, and then determines the closed region as the region. When the operation trajectory forms a plurality of closed areas, the area determination module 2103 prompts the user to perform the operation again.
In another embodiment, referring to fig. 24, the second friend making device 210 further includes a contact obtaining module 2109, a contact judging module 2110 and a size obtaining module 2111. The contact point acquiring module 2109 is used for acquiring a point selected by a user on the electronic map. The touch point judging module 2110 is used for judging the number of the acquired points selected by the user on the electronic map. The size obtaining module 2111 is configured to obtain a radius value or a diameter value set by a user when the point obtained 2109 by the contact point obtaining module is a point. The radius value or diameter value may be a numerical value previously input by the user, or a temporarily input value, or a distance between the end point and the start point of the sliding, which is slid on the electronic map by the user with the contact point as the start point. The area determining module 2103 is configured to, when the point acquired by the contact acquiring module 2109 is a point, calculate a closed circumferential area on the electronic map by using the point acquired by the contact acquiring module 2109 as a center of a circle, using the radius value acquired by the size acquiring module 2111 as a radius, or using the diameter value acquired by the size acquiring module 2111 as a diameter, and determine the closed circumferential area as an area. When the points acquired by the contact acquiring module 2109 are two points, the area determining module 2103 calculates a closed circumferential area on the electronic map by using a straight line formed by connecting the two points acquired by the contact acquiring module 2109 as a diameter or a radius and using any point on the straight line as a center of circle, and determines the closed circumferential area as the area. When the point acquired by the contact point acquisition module 2109 is three points, the area determination module 2103 determines a closed triangular area surrounded by the three points as the area.
In yet another embodiment, referring to fig. 25, the second friend-making device 210 further includes a contact detection module 2112 and a pressure/area detection module 2113. The contact detection module 2112 is used for acquiring the pressing position of the user on the electronic map. The pressure/area detecting module 2113 is configured to obtain a pressure value/area of a pressing position of the user on the electronic map. The area determination module 2103, according to the pressure value or the area acquired by the pressure/area detection module 2113, takes the pressing position acquired by the contact detection module 2112 as a geometric center point, extends outward on the electronic map according to a preset geometric shape, controls the geometric shape to stop extending when the user stops pressing the electronic map to form a closed area, and determines the closed area as the area.
In another embodiment, referring to fig. 26, the second friend making device 210 further includes an automatic current location uploading module 2114. The current position automatic uploading module 2114 is configured to automatically upload the current position of the user, where the situation that the current position automatic uploading module 2114 uploads the current position of the user includes detecting a motion state of the user according to an acceleration sensor, determining that the motion state of the user is running when the acceleration in the vertical direction detected by the acceleration sensor is in a continuous and regular reciprocating change, and uploading, by the client, the position information of the user at the moment to a server as the current motion position, where the current motion position is used to invite other users having the same motion hobbies. The identification information display module 2102 is further configured to display, in each area of the map area displayed on the display screen, identification information indicating a density of currently active users in the corresponding area, where a currently active user refers to a user whose current location is within the map area. The area determining module 2103 is further configured to determine a current target area on the map area displayed on the display screen in response to a touch gesture operation of a user on the map area displayed on the display screen. The uploading module 2104 is further configured to upload the current target area to a server. The receiving module 2105 is further configured to receive personal information of other users whose current positions are located in the area, where the personal information of the user includes background information of the user, and the personal information is sent by the server.
Fig. 27 is a schematic diagram of a functional module architecture of a first friend-making device 110 applied to a server according to an embodiment of the present invention. The first friend making device 110 is configured to perform steps S402 to S403, S407 to S410 in the flowchart shown in fig. 1. The first friend making device 110 includes a map area receiving module 1101, a filtering module 1102, an identification information generating module 1103, an obtaining module 1104, a matching module 1105, a sending module 1106, and a friend making request sending module 1107. The map area receiving module 1101 is configured to receive a map area that is sent by the client and displayed on a display screen, where the map area displayed on the display screen refers to an area that is automatically displayed on the display screen after an electronic map is started, or a map area that is displayed on the display screen after a user locates a destination on the map. The screening module 1102 is configured to screen out future active users or/and current active users of the map area, where the future active users of the map area refer to users whose set future target areas fall into the map area, the future target areas are areas that are uploaded by users and expected to perform offline activities in a future period of time, and the current active users of the map area refer to users whose current positions fall into the map area. The identification information generating module 1103 is configured to, for the screened future target area of the future active user or/and the specific position of the current active user in the map area, obtain the number of users in which the future target area included in different areas falls or/and the number of users in which the current position falls on the map area, obtain density information of the future active user or/and density information of the current active user in each area in the map area, and send the density information to the client. The obtaining module 1104 is configured to obtain a future target area or/and a current target area determined by a user through a touch gesture operation on an electronic map of the client. The matching module 1105 is configured to determine whether the future target area has an area intersection with a future target area uploaded by another user or/and determine whether the current location of another user falls into the current target area. The sending module 1106 is configured to send, to one or both of the clients of the users who have the area intersection therebetween when the future target area uploaded by the user has the area intersection with the future target area uploaded by the other user, the personal information of the user of the other user, or/and when the current location of the other user falls within the current target area of the user, send the personal information of the other user to the client of the user; wherein the personal information of the user includes background information of the user. The friend-making request sending module 1107 is configured to initiate a friend application or an offline activity offer to a selected peer user after receiving a selection operation of the user on the client for the peer user who is willing to perform social contact.
In another implementation manner of this embodiment, the obtaining module 1104 is further configured to obtain a time period sent by the client, where the time period is determined by the client responding to an operation of the user. The screening module 1102 is further configured to screen future active users of the map area having a time intersection with the time period uploaded by the user, where the future active users of the map area refer to users whose set future target areas fall into the map area, and the future target areas are areas that the user expects to perform offline activities in a future time period uploaded by the client. The identification information generating module 1103 is further configured to perform data analysis on the screened future target areas of the users with time intersection, and the server obtains, on the map area, the number of users in which the future target areas included in different areas fall according to specific positions of the future target areas set by the screened future active users in the map area, and obtains density information of the future active users in each area in the map area according to the number. The sending module 1106 is further configured to send the personal information of the opposite user to the client of the user having both the time intersection and the future target area intersection, where the personal information of the user includes the background information of the user.
The above description is only for the specific embodiment of the present invention, but the protection of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technology disclosed in the present invention, and all the changes or substitutions should be covered by the protection of the present invention. Therefore, the protection of the present invention shall be subject to the protection of the claims.