By Bethany Amborn on Friday, 17 October 2014
Posted in Technical Issues
Likes 0
Views 527
Votes 0
My locations seem to have migrated OK from JomSocial, but they do not work with the proximity search. If I search by country or state I get results, but not with distance.

Is there a way to geolocate the converted addresses so people can use the distance filter? This is probably the post used search function on my site
Hello Beth,

I am sorry for the delay of this reply.

Regarding your issue, I've checked your site and apparently your JomSocial do not have the geo-location data migrated ( the latitude and longitude ) thus the 'distance' search will be failed.

To use this distance search, if your address field is using the 'normal' mode ( user map option disabled ), then you will need to turn on the 'Geocode Address' option so that when user updating their address field, EasySocial will automatically send a request to google map to retrieve the geolocation and saved in your db

If you are using the 'map' mode, then your user will need to click on 'detect location' from the address field during they edit their profile so that EasySocial can capture the geolocation data and save into db

Hope this help and have a nice day
Sam
·
Friday, 17 October 2014 13:27
·
0 Likes
·
0 Votes
·
0 Comments
·
It helps explain it, yes, but I need to FIX it. With 18,000+ users, I can't simply wait for them all to figure out they need to update their location field. I still have JomSocial installed, is there any way to get those fields in there and somehow migrate them across? I really need to find a way to do this.
·
Friday, 17 October 2014 15:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Beth,

I am sorry for the late reply.

I still have JomSocial installed, is there any way to get those fields in there and somehow migrate them across? I really need to find a way to do this.


I am sorry but unfortunately this is not supported by the migrator You will need to write your own php script to manually get these values and do a curl to gogole map api to retrieve the latitude and longitude.

Please refer to this for code example. http://jainishsenjaliya.wordpress.com/2013/08/16/how-to-get-latitude-and-longitude-from-coutry-or-city-using-php/

Hope this help and have a nice day
Sam
·
Friday, 17 October 2014 16:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Beth,

I recommend you use this
http://www.nordmograph.com/extensions/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=30&virtuemart_category_id=15&Itemid=58

It's an admin module, It will translte user address into coordinates without requiring the user input.
·
Monday, 20 October 2014 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
That's perfect adrien, thank you! It didn't catch all of them, but enough that at least some are coming through
·
Monday, 20 October 2014 07:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Adrien for sharing this great module
Sam
·
Monday, 20 October 2014 11:26
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome. Happy It helped !
·
Monday, 20 October 2014 14:57
·
0 Likes
·
0 Votes
·
0 Comments
·
hello drien,

You're welcome.
·
Thursday, 23 October 2014 13:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post