View Full Version : Feature Request: Google Maps Integration
pfgannon
01-22-2009, 12:42 PM
I'm guessing this is a bit of a large request, but any kind of integration with Google Maps would be awesome.
This can already be done by properly modifying the template used when importing. If your CSV file has the fields for address, city, state and ZIP code, you could use something like this in your template:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
src="http://www.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=[address], [city], [state] [zipcode]&z=14&output=embed">
</iframe><br />
<small><a href="http://www.google.com/maps?f=q&source=embed&hl=en&geocode=&q=[address], [city], [state] [zipcode]" style="color:#0000FF;text-align:left">View Larger Map</a></small>
pfgannon
01-22-2009, 02:34 PM
This can already be done by properly modifying the template used when importing. If your CSV file has the fields for address, city, state and ZIP code, you could use something like this in your template:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
src="http://www.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=[address], [city], [state] [zipcode]&z=14&output=embed">
</iframe><br />
<small><a href="http://www.google.com/maps?f=q&source=embed&hl=en&geocode=&q=[address], [city], [state] [zipcode]" style="color:#0000FF;text-align:left">View Larger Map</a></small>
Why the hell didn't I think of that?
Thanks Ryan
nickmattern
01-22-2009, 02:36 PM
Why the hell didn't I think of that?
Thanks Ryan
Because you drink as much as I do all day! :)
trigatch4
01-23-2009, 07:55 AM
The above code does not work. The CSV fields do not get parsed. I tried to play with it but couldn't figure anything out that yielded the intended result.
nickmattern
01-23-2009, 08:08 AM
The above code does not work. The CSV fields do not get parsed. I tried to play with it but couldn't figure anything out that yielded the intended result.
Wierd as hell. I'm now getting this error:
Forbidden
Your client does not have permission to get URL /maps?f=q&source=s_q&hl=en&geocode=&q=,+Myrtle%20Beach,+SC+29588&sll=37.0625,-95.677068&sspn=40.409448,107.226563&ie=UTF8&z=14&iwloc=addr&ll=45.447728,-98.391066&output=embed&s=AARTsJqqFotjNdcW9QbN--Ap4MDBjSO3BA from this server. (Client IP address: 24.220.201.30)
Let me look into this more and I'll get a solution posted shortly.
trigatch4
01-23-2009, 08:52 AM
I can post the steps I used to incorporate embedded maps using custom fields if that helps. But it requires installing 2 additional plugins, plus changing importing csv to support custom fields.
I'm guessing not but if it helps, let me know. In the meantime I'll work on non-location based stuff.
My bad, this used to work. Now Google has locked it down with the API.
1nspire
04-19-2009, 03:01 PM
This works for Google maps through the template.
<table cellspacing="0" cellpadding="0" border="0"><tr><td><iframe src="http://www.map-generator.net/extmap.php?name=Spot&address=[street] [city] [state]&width=500&height=400&maptype=map&zoom=14&hl=en&t= 1240173092" width="500" height="400" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe></td></tr><tr><td align="right"></td></tr></table>
nickmattern
04-19-2009, 03:11 PM
Version 2 incorporates Google Maps via custom fields.. Stay tuned.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.