help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Feature requests for JEM 2.0 - initial public release

Feature requests

Re: Feature requests

11 years 8 months ago
#8783
@stevent: Thanks for your offer to donate some code. :) You could add the code as an attachment in a new topic, for example.

@jojo12: Of course we can't add everything. We should maintain a generality in the component without too much very specific things that only help a few. But some requests are worth considering!
Repository: Github // Issues: Github // Languages: Transifex

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

Re: Feature requests

10 years 9 months ago - 10 years 9 months ago
#12866
There is a geocoding option in the admin for venues. This doesn't work. (The button doesn't have any action attached)

I've created some simple geocoding.

Put this javascript somewhere in the top of views/venue/tmpl/edit.php
Code:
<script> function codeAddress() { geocoder = new google.maps.Geocoder(); var address = document.getElementById("jform_street-lbl").value; var zip = document.getElementById("jform_postalCode").value; var city = document.getElementById("jform_city").value; var fulladdress = address + ' ' + zip + ' ' + city; geocoder.geocode( { 'address': fulladdress}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { document.getElementById("jform_latitude").value = results[0].geometry.location.lat(); document.getElementById("jform_longitude").value = results[0].geometry.location.lng(); } else { alert("Geocode was not successful for the following reason: " + status); } }); } </script>

Add a onclick to the button:
Code:
<input id="find" type="button" value="find" onclick="codeAddress()" />

This wil take the street, zip and city as an input for geocoding. No need for the extra geocomople te field next to the button.
Last edit: 10 years 9 months ago by stevent.

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

Re: Feature requests

10 years 9 months ago
#12869
Hi Stevent,

Did not test your solution yet, but a question..:

I understand your geocode solution fills the existing JEM address fields?

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

Re: Feature requests

10 years 9 months ago
#12872
No, the other way around. You fill out the address fields, and then the geocoding script does a lookup of the latitude and longitude. This is then entered in the appropriate lat and lon fields (just below the geocoding button)

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

Re: Feature requests

10 years 9 months ago
#12875
Ah, cool. I will test this.

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

Re: Feature requests

10 years 9 months ago
#12876
I think there was at least one discussion about that.

Personally I would (as a site admin) never accept that a full address is automatically sent to google or whatever data collecting company. It should be always the decission of the author which information is sent (e.g. street without house number). The data shown can be restricted to a closed user group but data sent to google not.

It's desirable to allow writing data once. But user should be able to check (and modify) all the data which would be sent to an external site before it is sent.

Maybe I'm a dying breed but I try to consequently keep personal data (especially of other persons) as private as possible.

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

Time to create page: 0.793 seconds