help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
Events near to user location
Events near to user location
6 years 1 month ago - 6 years 1 month ago
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!
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!
Last edit: 6 years 1 month ago by yodam.
Please Log in or Create an account to join the conversation.
Re: Events near to user location
6 years 1 month ago
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.
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.
Re: Events near to user location
6 years 1 month ago
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!
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.
Re: Events near to user location
6 years 1 month ago
So if you know what to do, then do it.
You are welcome to publish your solution here
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.
Time to create page: 0.904 seconds