<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Bob,<br>Without knowing more details of your app environment, I'd approach as follows:<br><br>Have your client-side code collect the user's address entry and include it as an <br>arg to your php/mapscript program (which will return a map image). Have the <br>php encode the user's address into the ArcGIS Service params. I believe your <br>php can be an HTTP client of Arc or anyone else using the cURL library. Retrieve <br>the response from ArcGIS, extract the coords. Build a mapscript PointObj using<br>those coords, and draw it onto a POINT layer on the image you will dump to the <br>client at the end. If you have a mapfile feeding your php, the POINT layer can be <br>defined there as having no data source or connectiontype, status OFF, and styled <br>to draw an appropriate symbol at the geocode location. You might center the
<br>output image on the returned point.<br><br>There might be more elegant ways to do this on the php side, or, if you're <br>running OpenLayers client-side, I think you can call ArcGIS directly from <br>client-side, and have OpenLayers create a marker from the returned location and <br>drop that over a generic map image returned by mapscript.<br><br>I hope this helps. (sorry if this message doesn't get inserted into your thread; I<br>receive mapserver-users as a digest)<br><br>Robert H.<br><br><br><p style="font-family: courier,monaco,monospace,sans-serif; color: rgb(64, 127, 0); text-decoration: underline;">I’m building a PHP/MapServer application
which needs to perform geocoding. I’m aware that MapServer itself does
not geocode. I intend to use a geocoding service hosted on ArcGIS
Server. </p>
<p style="font-family: courier,monaco,monospace,sans-serif; color: rgb(64, 127, 0); text-decoration: underline;">The intent is to have input boxes where
the user can enter an address, send this to the geocoding service, and
have it return coordinates of the location.</p>
<p style="font-family: courier,monaco,monospace,sans-serif; color: rgb(64, 127, 0); text-decoration: underline;">Can anyone point me to an example of how to do this with PHP/Mapscript?
</p>
<br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(64, 127, 0); text-decoration: underline;">
<p style="font-family: courier,monaco,monospace,sans-serif; color: rgb(64, 127, 0); text-decoration: underline;"><font size="2">_________________________________</font><br>
<font size="2">Bob Bistrais, GISP</font><br>
<font size="2">Maine Office of Information Technology</font><br>
</p><br><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div></td></tr></table>