[mapserver-users] Street Searching

Tyler Mitchell TMitchell at lignum.com
Fri Apr 26 08:44:47 PDT 2002


Good idea.  I guess it would be even easier to do just using a query to a
database for returning the result?


                                                                                                                                                  
                      Stephen Woodbridge                                                                                                          
                      <woodbri at swoodbridge.com>           To:       Stefano Bonnin <shpr at libero.it>                                               
                      Sent by:                            cc:       mapserver-users at lists.gis.umn.edu                                             
                      owner-mapserver-users at lists.        Fax to:                                                                                 
                      gis.umn.edu                         Subject:  Re: [mapserver-users] Street Searching                                        
                                                                                                                                                  
                                                                                                                                                  
                      04/26/2002 05:10 AM                                                                                                         
                                                                                                                                                  
                                                                                                                                                  




Stefano,

I wrote a separate CGI program to do this. You could write it in C or
Perl or whatever. It does the address lookup by scanning the approprate
shape files and when it has a result it sends a client redirect to the
browser to get it to load the map with the Lat/Long result for the
search results.

I think you will find this much easier to do if you think about doing it
outside of mapserver/mapscript and only send the final result to get
mapserver to display the answer.

-Steve W.

Stefano Bonnin wrote:
>
> Hi,
>
> I have to develop a Street Searching function where
>
> the user can insert City and Street ( and number) and the application
must
> display the map centered on this street.
>
> How can I do that with mapserver?
> Can you give me an Hint in order to do this.
>
> I read the PHP Map/documentation but I did't find any query of this type.
> My personal solution is the following:
>
> with a PHP application I get the user input (Street and City) and I query
to
> the database in order to find the object ID, then, I "say" to mapserver
to
> create a map with this object ....
>
> Someone can say me if this is a possible solution or if there are a more
> simple solution?
>
> Thanks.
>
> Stefano B.
>
> ---
> Outgoing mail is certified Virus Free. (FLASHH!)
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02








More information about the MapServer-users mailing list