If you need support for a commercial extension, you must use the account you used to make the purchase and items must be listed on your profile. First, search the forum, make sure your issue has not been resloved yet. Post describing precisely what the issue is, mentioning the Joomla, PHP, versions and a URL to the concerned page or a descriptive screenshot.
Welcome, Guest
Username Password: Remember me
Geommunity is allready supporting 3rd party extensions such as AlphaUserPoints, CBwhatru, MyPlayer, Shoutboxes etc... We will suggest here future possible enhancements. And provide the most popular ones in future updates. You can also suggest your own ideas.
  • Page:
  • 1
  • 2

TOPIC: Geommunity Users Radius Search

Geommunity Users Radius Search 1 year, 12 months ago #1252

  • nordmograph
  • ( Admin )
  • NOW ONLINE
  • Moderator
  • Posts: 3373
  • Karma: 60
Hi
Some users emailed me about this feature so I might be releasing a module to search for users by proximity according to coordinates.

This PHP function calculates the distance between to pairs of latitude longitude coordinates. Returns the distance in miles or kilometers.

function distance($lat1, $lng1, $lat2, $lng2, $miles = true)
{
	$pi80 = M_PI / 180;
	$lat1 *= $pi80;
	$lng1 *= $pi80;
	$lat2 *= $pi80;
	$lng2 *= $pi80;

	$r = 6372.797; // mean radius of Earth in km
	$dlat = $lat2 - $lat1;
	$dlng = $lng2 - $lng1;
	$a = sin($dlat / 2) * sin($dlat / 2) + cos($lat1) * cos($lat2) * sin($dlng / 2) * sin($dlng / 2);
	$c = 2 * atan2(sqrt($a), sqrt(1 - $a));
	$km = $r * $c;

	return ($miles ? ($km * 0.621371192) : $km);
}
Last Edit: 1 year, 12 months ago by nordmograph.

Re:Geommunity Users Radius Search 1 year, 10 months ago #1692

  • Snap
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
I like the idea to search for users by proximity according to coordinates

If I could add to this request:

It would be really great if it was possible to include a feature where the browser asks to pull your coordinates and then updates your geolocation: So if users where using your site from a mobile device.

<div>
<input type="text" id="lat_field" name="latitude" />
<input type="text" id="long_field" name="longitude" />
</div>
<script>
navigator.geolocation.getCurrentPosition(
function(pos) {
$("#lat_field").val(pos.coords.latitude);
$("#long_field").val(pos.coords.longitude);
}
);
</script>

IDEAS:
(1) www.mobilehtml5.com/post/371921120/tutor...html5-app-the-basics

(2) Use API from: simplegeo.com/

GET geolocation from the browser! Please
thanks to anyone
Last Edit: 1 year, 10 months ago by Snap.

Re:Geommunity Users Radius Search 1 year, 9 months ago #2238

  • alterna
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 29
  • Karma: 0
Well bump for this request which is very needed !

I would add:
Could you support the new events location in the maps and add a plugin for sobi2 entries which are already geolocated ??

Re:Geommunity Users Radius Search 1 year, 9 months ago #2240

  • nordmograph
  • ( Admin )
  • NOW ONLINE
  • Moderator
  • Posts: 3373
  • Karma: 60
I like the mobilehtml5 example, I'll digg into this.
I'll have a look at simplegeo, the free option...
And I'll think about adding Sobi entries to the map also. I lke the idea f having users and sobi markers aon the same map

Thank you guys

Re:Geommunity Users Radius Search 1 year, 2 months ago #4434

Yep, SOBI would be great. It would allow you to combine a business directory with social network basically and intereact with each other.

Re:Geommunity Users Radius Search 7 months, 3 weeks ago #6397

  • nordmograph
  • ( Admin )
  • NOW ONLINE
  • Moderator
  • Posts: 3373
  • Karma: 60
Just to let you know
SobiPro entries have just been integrated to the Geommunity map (as PhocaMap markers , Adsmanger Ads , Jomsocial events, unlimited KML etc...)
  • Page:
  • 1
  • 2
Time to create page: 1.16 seconds