Patent attributes
In one embodiment, an online social network may receive, from a client system of a first user of the online social network, a search query inputted by the first user; and identify one or more of the entities matching the search query. At least a portion of the entities being identified based at least in part on a recorded geographic proximity between the first user and each identified entity. The online social network may access one or more proximity coefficients for the identified entities from a proximity-coefficient system of the online social network; calculate a score for each identified entity based at least in part on the value of the accessed proximity coefficients for the identified entity and social-graph information associated with the identified entity; and send, to the client system of the first user in response to the received search query, search results for display to the first user.