Re: [PHPLIB] [OT] Finding nearby locations From: Kristian Koehntopp (kris <email protected>)
Date: 04/10/00

In netuse.lists.phplib you write:
>I'm currently working on a site using PHP/PHPLIB. The owner of the
>company the site will belong to wants to put up a page where customers
>could put in their city,state to get a list of possible shops in their
>area they can go to for service. It'd need to include all cities within
>a customer supplied radius (say 10, 25, or 50 miles).

There is no such thing ready made in PHP. Usually you have a
position finder returning cartesian coordinates in some notation
and select a rectangular area based on that position from the
database. If you need round areas, you still select rectangular
from the database and filter them round manually.

Kristian

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.