Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Events near to user location 4 years 7 months ago #25441

  • yodam
  • yodam's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
Hi,
Is possible to show before events near to user location on module banner? if nothing exist where can I find how to develop that?

Thanks!

Please Log in or Create an account to join the conversation.

Last edit: by yodam.

Events near to user location 4 years 7 months ago #25442

Hey yodam,
showing only events that are near to the user is very difficult:
1. You need to get the location of the user (via Form or via GPS from its mobile phone)
2. You need to use the google-api to calculate the distance between the user's location and your event's location
3. You need to filter only those events that are in a specific radius, that should be configurable, around the user's location.

It's not done easy via override because you need to enhance the models of JEM etc.

Please Log in or Create an account to join the conversation.

Events near to user location 4 years 7 months ago #25444

  • yodam
  • yodam's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
Hi Egnarts,
1) I get user location with GPS or internet provider location
2) I use the venue location in logitude,latitude (that I insert from administration) and I show only events in 80km radius (for example) or in the same region. This can be done with a sql query if distance is in "as the crow flies"

In this way is it more simple?

I've found that for PHP:
www.geoplugin.com/webservices/php


Thanks!

Please Log in or Create an account to join the conversation.

Events near to user location 4 years 7 months ago #25445

So if you know what to do, then do it.
You are welcome to publish your solution here :)
The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

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

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......