PDA

View Full Version : Google Maps


nesnellektuel
01-23-2012, 09:26 PM
I prepare a directory for companies.
How do I determine the positions of the companies that are indexed on Google Maps?
Thanks

bruleo
01-23-2012, 09:53 PM
You can add a google function to the maps code in phpLD to parse the address into coordinates, but you will need to reference the Googles maps API section (http://code.google.com/apis/maps/index.html) on exactly how to do that as there are several different methods.

I think it might now only be possible with the latest API code, so it's possible the existing maps code in phpLD would need replacing.


Bruce.

nesnellektuel
01-31-2012, 12:33 PM
Do you have a sample site using GOOGLE MAPS phpld?
Would you write the url?
to examine
Thank you.

bruleo
01-31-2012, 01:25 PM
Using the Google Maps V3 Api code (NOT the phpLD default code) :
Showing region categories: http://www.awayaway.com/destinations/south-america/ (http://www.phplinkdirectory.com/forum/externalredirect.php?url=http://www.awayaway.com/destinations/south-america/)
Showing a link in one of the regions : http://www.awayaway.com/destinations/south-america/peru/ (http://www.phplinkdirectory.com/forum/externalredirect.php?url=http://www.awayaway.com/destinations/south-america/peru/)

Links and categories can be mixed : http://www.awayaway.com/destinations/asia/southern-asia/india/ (http://www.phplinkdirectory.com/forum/externalredirect.php?url=http://www.awayaway.com/destinations/asia/southern-asia/india/)

I still need to physically link the markers to the links.... just haven't got around to it.

Click on the 'map' button.

Again, this is not the default phpLD code. The default phpLD code is for details page only, but the above acan be applied as well, but would require a little bit of custom work.

However, if you study the Google Maps API code at the link I posted before, you should be able to work out the code. Took me a few hours to ascertain what was needed and apply it to the site.

Bruce.

rodricrzz
02-21-2012, 02:30 AM
you know how to adapt to google maps v3 for phpLD 4? I can't create the api key for v2 that says is disabled, now must use v3.

bruleo
02-21-2012, 10:17 AM
I do, but would take too long and would be pretty much exactly the same as Google post in their own documentation, so best look there.

Besides, I wouldn't post it outside the paid version forum anyway, as it would also contain phpLD code.

Bruce.

James
02-21-2012, 12:25 PM
it is posted here in the paid version forum


Use the search