The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Show other hotspots nearby?

Show other hotspots nearby? 5 years 1 month ago #35936

  • Marcus Stafford
  • Marcus Stafford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
It woud be really helpful, for me at least, to show nearby hotspots when viewing a single entry. Is this possible?

Show other hotspots nearby? 5 years 1 month ago #35949

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You would need to write a custom query to load nearby locations and then you would have to add them to the map.

Have a look at the searchINRadius function in source/components/com_hotspots/models/json.php
You would have to remove the where clause and use the current's hotspot lat&lng to do the search for nearby hotspots. And you would have the 100 miles limit to whatever you need it.

  • Page:
  • 1
Time to create page: 0.129 seconds