<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Google Mapping Part Deux (Multiple Addresses)</title>
	<atom:link href="http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/feed/" rel="self" type="application/rss+xml" />
	<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/</link>
	<description>Syndicating the best FileMaker blogs</description>
	<lastBuildDate>Sat, 29 Nov 2008 04:44:04 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mike.lee</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-2908</link>
		<dc:creator>mike.lee</dc:creator>
		<pubDate>Wed, 26 Nov 2008 19:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-2908</guid>
		<description>Hello everyone.  I&#039;m moving this over to the main Proof Group blog to continue this topic and discussion.  I&#039;ve made a lot of progress on the issues and look forward to sharing.

http://www.proofgroup.com/blog/2008/nov/google_mapping_redux</description>
		<content:encoded><![CDATA[<p>Hello everyone.  I&#8217;m moving this over to the main Proof Group blog to continue this topic and discussion.  I&#8217;ve made a lot of progress on the issues and look forward to sharing.</p>
<p><a href="http://www.proofgroup.com/blog/2008/nov/google_mapping_redux" rel="nofollow">http://www.proofgroup.com/blog/2008/nov/google_mapping_redux</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike.lee</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-2907</link>
		<dc:creator>mike.lee</dc:creator>
		<pubDate>Mon, 24 Nov 2008 17:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-2907</guid>
		<description>tinynumbers,

POST is the answer, but unfortunately FileMaker doesn&#039;t give us POST natively in the Web Viewer.  Your solution, to use the plugin, is innovative, but you actually ran into problems with the FileMaker implementation of the &quot;data URI scheme&quot;.  I had seen this, too.  The Google API key is based on the &#039;Host&#039;.  For a hosted file, this is the server address.  For a local file, this is usually blank (and Google allows any API to be used with a blank host).  However, in this case, FileMaker is *not* giving us a blank Host.  It is returning a Host which looks like this: &#039;2071A046-D389-4811-A9DC-E3F1D27E3DC9&#039;.

Loading some simple JavaScript via &#039;data:text/html&#039; will show you this first-hand:


HOST:document.write(location.host)


There&#039;s nothing that can be done with that.  Even saving the file locally and opening it via a file reference (e.g. &quot;file://HD/Users/username/Desktop/map.html&quot;) won&#039;t do it for the same reason.

The solution I found, which is well too complicated to go into here fully, was to basically do the following:

1) Create a form with all my parameters
2) Save it to the local disk
3) Open the file in a Web Viewer

Step 4 would be either: (a) push the submit button or (b) use JavaScript to auto-submit the form.

If I can find some time, I&#039;ll put something more detailed up.

--Mike</description>
		<content:encoded><![CDATA[<p>tinynumbers,</p>
<p>POST is the answer, but unfortunately FileMaker doesn&#8217;t give us POST natively in the Web Viewer.  Your solution, to use the plugin, is innovative, but you actually ran into problems with the FileMaker implementation of the &#8220;data URI scheme&#8221;.  I had seen this, too.  The Google API key is based on the &#8216;Host&#8217;.  For a hosted file, this is the server address.  For a local file, this is usually blank (and Google allows any API to be used with a blank host).  However, in this case, FileMaker is *not* giving us a blank Host.  It is returning a Host which looks like this: &#8216;2071A046-D389-4811-A9DC-E3F1D27E3DC9&#8242;.</p>
<p>Loading some simple JavaScript via &#8216;data:text/html&#8217; will show you this first-hand:</p>
<p>HOST:document.write(location.host)</p>
<p>There&#8217;s nothing that can be done with that.  Even saving the file locally and opening it via a file reference (e.g. &#8220;file://HD/Users/username/Desktop/map.html&#8221;) won&#8217;t do it for the same reason.</p>
<p>The solution I found, which is well too complicated to go into here fully, was to basically do the following:</p>
<p>1) Create a form with all my parameters<br />
2) Save it to the local disk<br />
3) Open the file in a Web Viewer</p>
<p>Step 4 would be either: (a) push the submit button or (b) use JavaScript to auto-submit the form.</p>
<p>If I can find some time, I&#8217;ll put something more detailed up.</p>
<p>&#8211;Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tinynumbers</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-2906</link>
		<dc:creator>tinynumbers</dc:creator>
		<pubDate>Fri, 21 Nov 2008 19:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-2906</guid>
		<description>You wrote: &quot;The solution, of course, is to use POST, but I’ll leave that as an exercise for the reader. Hint: you may have to do things completely differently and FM9 helps.&quot;...

Any clues on how to go about this exercise?  I&#039;ve tried using the Troi URL plugin to do the POST, getting the result page source (HTML) into a field, and displaying the HTML in a web viewer using the &quot;data URI scheme&quot; - http://en.wikipedia.org/wiki/Data_URI_scheme - but that doesn&#039;t work.  The problem is that my Google Maps API key can&#039;t be verified (for reasons that I can&#039;t understand) when the page is viewed like this (though the same page works fine in a web browser).

I&#039;m assuming that there&#039;s a more straightforward method, based on your teaser, which wouldn&#039;t use a plugin, but I have no idea what that method would be....?</description>
		<content:encoded><![CDATA[<p>You wrote: &#8220;The solution, of course, is to use POST, but I’ll leave that as an exercise for the reader. Hint: you may have to do things completely differently and FM9 helps.&#8221;&#8230;</p>
<p>Any clues on how to go about this exercise?  I&#8217;ve tried using the Troi URL plugin to do the POST, getting the result page source (HTML) into a field, and displaying the HTML in a web viewer using the &#8220;data URI scheme&#8221; &#8211; <a href="http://en.wikipedia.org/wiki/Data_URI_scheme" rel="nofollow">http://en.wikipedia.org/wiki/Data_URI_scheme</a> &#8211; but that doesn&#8217;t work.  The problem is that my Google Maps API key can&#8217;t be verified (for reasons that I can&#8217;t understand) when the page is viewed like this (though the same page works fine in a web browser).</p>
<p>I&#8217;m assuming that there&#8217;s a more straightforward method, based on your teaser, which wouldn&#8217;t use a plugin, but I have no idea what that method would be&#8230;.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott050203</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-2878</link>
		<dc:creator>Scott050203</dc:creator>
		<pubDate>Fri, 31 Oct 2008 19:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-2878</guid>
		<description>I love this solution ... it works great ... the only thing that would make it go from good to GREAT would be the ability to add custom text to the pop-up box.
I know this can be done and I have tried to accomplish it myself ... unsucessfully ... if anyone can provide me with the solution for this you would be my hero!</description>
		<content:encoded><![CDATA[<p>I love this solution &#8230; it works great &#8230; the only thing that would make it go from good to GREAT would be the ability to add custom text to the pop-up box.<br />
I know this can be done and I have tried to accomplish it myself &#8230; unsucessfully &#8230; if anyone can provide me with the solution for this you would be my hero!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Lee</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-1245</link>
		<dc:creator>Mike Lee</dc:creator>
		<pubDate>Tue, 08 Apr 2008 01:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-1245</guid>
		<description>A tip of the hat to Jon Rosen for pointing out a flaw in my above PHP.  It turns out that when your server&#039;s PHP configuration &#039;magic_quotes_gpc&#039; directive is turned On (as it is by default), then googlemaparray.php won&#039;t work.  Our server has this directive turned Off, so I didn&#039;t notice this issue while testing here.

The solution is to use the &lt;code&gt;stripslashes()&lt;/code&gt; function (&lt;a href=&quot;http://www.php.net/stripslashes&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/stripslashes&lt;/a&gt;) to convert the escaped characters.

Immediately after the line which reads:
&lt;code&gt;$addrarray = $_GET[’addr’];&lt;/code&gt;

Add the following:
&lt;code&gt;$addrarray = stripslashes($addrarray);&lt;/code&gt;

Note: I&#039;ve updated the original PHP to version 1.1 to reflect this change.</description>
		<content:encoded><![CDATA[<p>A tip of the hat to Jon Rosen for pointing out a flaw in my above PHP.  It turns out that when your server&#8217;s PHP configuration &#8216;magic_quotes_gpc&#8217; directive is turned On (as it is by default), then googlemaparray.php won&#8217;t work.  Our server has this directive turned Off, so I didn&#8217;t notice this issue while testing here.</p>
<p>The solution is to use the <code>stripslashes()</code> function (<a href="http://www.php.net/stripslashes" rel="nofollow">http://www.php.net/stripslashes</a>) to convert the escaped characters.</p>
<p>Immediately after the line which reads:<br />
<code>$addrarray = $_GET[’addr’];</code></p>
<p>Add the following:<br />
<code>$addrarray = stripslashes($addrarray);</code></p>
<p>Note: I&#8217;ve updated the original PHP to version 1.1 to reflect this change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Lee</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-998</link>
		<dc:creator>Mike Lee</dc:creator>
		<pubDate>Sun, 06 Jan 2008 21:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-998</guid>
		<description>Regarding directions, I haven&#039;t investigated this, but have a couple comments.

You can call the correctly-formatted directly URL within a Web Viewer:
http://maps.google.com/maps?&amp;saddr=STARTADDRESS&amp;daddr=DESTINATIONADDRESS

Of course, this doesn&#039;t utilize the API and you lose control over look and feel.

The other option is to investigate the Google Maps API, which does have information on getting directions:
http://code.google.com/apis/maps/documentation/services.html#Driving_Directions

They have a sample page utilizing this:
http://code.google.com/apis/maps/documentation/examples/directions-simple.html

This sounds like an interesting addition.  Perhaps I can address it via a future article.</description>
		<content:encoded><![CDATA[<p>Regarding directions, I haven&#8217;t investigated this, but have a couple comments.</p>
<p>You can call the correctly-formatted directly URL within a Web Viewer:<br />
<a href="http://maps.google.com/maps?&#038;saddr=STARTADDRESS&#038;daddr=DESTINATIONADDRESS" rel="nofollow">http://maps.google.com/maps?&#038;saddr=STARTADDRESS&#038;daddr=DESTINATIONADDRESS</a></p>
<p>Of course, this doesn&#8217;t utilize the API and you lose control over look and feel.</p>
<p>The other option is to investigate the Google Maps API, which does have information on getting directions:<br />
<a href="http://code.google.com/apis/maps/documentation/services.html#Driving_Directions" rel="nofollow">http://code.google.com/apis/maps/documentation/services.html#Driving_Directions</a></p>
<p>They have a sample page utilizing this:<br />
<a href="http://code.google.com/apis/maps/documentation/examples/directions-simple.html" rel="nofollow">http://code.google.com/apis/maps/documentation/examples/directions-simple.html</a></p>
<p>This sounds like an interesting addition.  Perhaps I can address it via a future article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hotsoup</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-997</link>
		<dc:creator>hotsoup</dc:creator>
		<pubDate>Sun, 06 Jan 2008 06:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-997</guid>
		<description>I am trying to get FM to pull up a map of directions simply from &quot;point a to point b&quot; with the data in my database. Can someone help?</description>
		<content:encoded><![CDATA[<p>I am trying to get FM to pull up a map of directions simply from &#8220;point a to point b&#8221; with the data in my database. Can someone help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wstites</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-442</link>
		<dc:creator>wstites</dc:creator>
		<pubDate>Fri, 26 Oct 2007 12:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-442</guid>
		<description>This is and extremely flexible and powerful tool that I was able to plug-in to my existing database.  Solved some immediate needs.  Thanks!</description>
		<content:encoded><![CDATA[<p>This is and extremely flexible and powerful tool that I was able to plug-in to my existing database.  Solved some immediate needs.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Lee</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-207</link>
		<dc:creator>Mike Lee</dc:creator>
		<pubDate>Tue, 09 Oct 2007 15:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-207</guid>
		<description>While investigating this, I found an interesting page on Maximum URL Length Limits, here:
http://www.boutell.com/newfaq/misc/urllength.html</description>
		<content:encoded><![CDATA[<p>While investigating this, I found an interesting page on Maximum URL Length Limits, here:<br />
<a href="http://www.boutell.com/newfaq/misc/urllength.html" rel="nofollow">http://www.boutell.com/newfaq/misc/urllength.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Lee</title>
		<link>http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/comment-page-1/#comment-206</link>
		<dc:creator>Mike Lee</dc:creator>
		<pubDate>Tue, 09 Oct 2007 15:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://fmcollective.com/2007/09/05/google-mapping-part-deux-multiple-addresses/#comment-206</guid>
		<description>For Windows users...  I have learned that there is an Internet Explorer limitation which restricts the length of the URLs for a GET request to 2048 characters.  This is much smaller than the Apache limit and may prevent the map for working for found sets much larger than 25 records.  If you&#039;ve downloaded the example file and had trouble, that might explain why.

More information can be found here:
http://support.microsoft.com/kb/208427

Because the Web Viewer uses the IE engine, there&#039;s not much we can do about this limit within FileMaker.  On a Mac, it uses the Safari engine which doesn&#039;t exhibit this limitation.</description>
		<content:encoded><![CDATA[<p>For Windows users&#8230;  I have learned that there is an Internet Explorer limitation which restricts the length of the URLs for a GET request to 2048 characters.  This is much smaller than the Apache limit and may prevent the map for working for found sets much larger than 25 records.  If you&#8217;ve downloaded the example file and had trouble, that might explain why.</p>
<p>More information can be found here:<br />
<a href="http://support.microsoft.com/kb/208427" rel="nofollow">http://support.microsoft.com/kb/208427</a></p>
<p>Because the Web Viewer uses the IE engine, there&#8217;s not much we can do about this limit within FileMaker.  On a Mac, it uses the Safari engine which doesn&#8217;t exhibit this limitation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
