Wednesday, February 26, 2014
6 Replies
4.8K Visits
I have a list of 900 locations that I want to be able to show, but there are 2 things. it's in a xlsx list which I can change to csv, but I only have the zip code for each location, and not a specific address. Is there a way to import this info into "my maps location"?
T
11 years ago
·
#977 Hi,
There's no import tool yet in MML, but it's a feature we would like to add in a future version.
But if you're familiar with MySQL you can try to import csv/xls in database
Regards,
There's no import tool yet in MML, but it's a feature we would like to add in a future version.
But if you're familiar with MySQL you can try to import csv/xls in database

Regards,
J
11 years ago
·
#979 well, I am familiar. I can access phpmyadmin and import there, but the question is this...
if I just have 2 columns. name and zip code, would that be enough to add the locations?
if I just have 2 columns. name and zip code, would that be enough to add the locations?
@Jonathan Rosenbaum
though we are not supporting mml import functionality.the main thing is we are highly dependent on latitude and longitude for geocoding. for that i have created one function
components\com_mymaplocations\helpers\mymaplocations.php
there we have created the function
public function getLatLongFromPostcode($postcode)
if you want to call that function anywhere in the code you can do it by
$filename=JPATH_SITE . '/components/com_mymaplocations/helpers/mymaplocations.php';
if (file_exists($filename)) {
require_once($filename);
}
$geo=MyMaplocationsHelper::getLatLongFromPostcode($address) ;
here if in this function you can put postcode it will geocode.so you need to create one custom script where you can call this function and save the data in geocode.once you get latitude longitude just save them on database.
i am also open to help you in it if you find any issues in it.
though we are not supporting mml import functionality.the main thing is we are highly dependent on latitude and longitude for geocoding. for that i have created one function
components\com_mymaplocations\helpers\mymaplocations.php
there we have created the function
public function getLatLongFromPostcode($postcode)
if you want to call that function anywhere in the code you can do it by
$filename=JPATH_SITE . '/components/com_mymaplocations/helpers/mymaplocations.php';
if (file_exists($filename)) {
require_once($filename);
}
$geo=MyMaplocationsHelper::getLatLongFromPostcode($address) ;
here if in this function you can put postcode it will geocode.so you need to create one custom script where you can call this function and save the data in geocode.once you get latitude longitude just save them on database.
i am also open to help you in it if you find any issues in it.
J
11 years ago
·
#982 well, I found a zip to geocode converter and I tweaked the file and did a mass upload to the database.
2 things:
for some reason when I go to the page it messes up the main nav bar
http://www.alliedaircontractor.net/alliedaircooling/index.php/where-to-buy
second is there a way to reduce the size of that large search bar? I'm guessing css, but is there something other than that?
2 things:
for some reason when I go to the page it messes up the main nav bar
http://www.alliedaircontractor.net/alliedaircooling/index.php/where-to-buy
second is there a way to reduce the size of that large search bar? I'm guessing css, but is there something other than that?
- Page :
- 1
There are no replies made for this post yet.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »