1. Zephyrinus
  2. General
  3. Wednesday, May 20 2015, 11:05 AM
We really need the following to work! Your support has been perfect and my following question might be something for future development. But I can always try to find a simple sollution with you guys for the short term. Cause we run our business on your component, and we really need this ;-)

So respectfully I'm asking for a sollution for the following

In the attachment you'll find a schema.

We need the radius to swap. So profile members can enter the radius within they operate. Visitors will only enter their postal code (or adress). Easy-profile filter and search will list the profilemembers that operate at that adress, cause that exact adress is within the given radius. (plz see attachment)

Can you help me with a hack to do this please?

With warm regards,

Dennis
Attachments (1)
admin Accepted Answer
Admin
Hi,
I do not know if I understand it right.

You can combine SQL custom where with our content plugin.

Example in a previous post you ask me how to filter user near a City like Amsterdam (https://www.easy-profile.com/support/custom-sql-where-to-preset-profiles-within-area-city-and-radius.html).
You can replace in SQL custom where the coordinates of the city with loggen in user, to have for example something like "users near me"
( 6371 * acos( cos( radians({user map_alias_lat raw}) ) * cos( radians( b.`map_lat` ) ) * cos( radians( b.`map_lng` ) - radians({user map_alias_lng raw}) ) + sin( radians({user map_alias_lat raw}) ) * sin( radians( b.`map_lat` ) ) ) ) < 20


in this example you will get users near me (20km of radius)

{user map_alias_lat raw} will be replaced by my latitude of map_alias field
{user map_alias_lng raw} will be replaced by my longitude of map_alias field
docs for our Content plugin here: https://www.easy-profile.com/docs/26-plugin-content.html
  1. more than a month ago
  2. General
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.