dbClass = new dbClass(); } function getLatitudeLongitude($zip) { //Returns latitude and longitude of a given zipcode $query = "SELECT latitude, longitude FROM ctrak_zipcodes WHERE zipcode = ".$zip; $results = $this->dbClass->query($query); return $results; } function getZipArray($zip, $distance = 10) { //Given a zipcode and a distance, returns an comma separated list of zipcodes within this distance //If distance = 0 change to a very small distance if ($distance==0) $distance = 0.001; //Get zipcode location $location = $this->getLatitudeLongitude($zip); if(isset($location[0])) { $latitude = $location[0]['latitude']; $longitude = $location[0]['longitude']; //Get rectangle area $this->RadiusAssistant($latitude, $longitude, $distance); //Select all zipcodes within rectangle $query = "SELECT zipcode FROM ctrak_zipcodes WHERE latitude <= ".$this->maxLat." AND latitude >= ".$this->minLat; $query.= " AND longitude <= ".$this->maxLong." AND longitude >= ".$this->minLong; $results = $this->dbClass->query($query); $list = array(); foreach ($results as $key=>$value) { $list[] = $value['zipcode']; } $result = implode(",",$list); } else { $result =""; } return $result; } function Calculate( $dblLat1, $dblLong1, $dblLat2, $dblLong2 ) { $EARTH_RADIUS_MILES = 3963; $dist = 0; //convert degrees to radians $dblLat1 = $dblLat1 * M_PI / 180; $dblLong1 = $dblLong1 * M_PI / 180; $dblLat2 = $dblLat2 * M_PI / 180; $dblLong2 = $dblLong2 * M_PI / 180; if ($dblLat1 != $dblLat2 || $dblLong1 != $dblLong2) { //the two points are not the same $dist = sin($dblLat1) * sin($dblLat2) + cos($dblLat1) * cos($dblLat2) * cos($dblLong2 - $dblLong1); $dist = $EARTH_RADIUS_MILES * (-1 * atan($dist / sqrt(1 - $dist * $dist)) + M_PI / 2); } return $dist; } function RadiusAssistant($Latitude, $Longitude, $Miles) { $EQUATOR_LAT_MILE = 69.172; $this->maxLat = $Latitude + $Miles / $EQUATOR_LAT_MILE; $this->minLat = $Latitude - ($this->maxLat - $Latitude); $this->maxLong = $Longitude + $Miles / (cos($this->minLat * M_PI / 180) * $EQUATOR_LAT_MILE); $this->minLong = $Longitude - ($this->maxLong - $Longitude); } } ?> Everyhomepro.com provides the most comprehensive online directory of home improvement professionals
EVERYHOMEPRO.com site sponsor
 
Find A Realtor

Welcome to Find A Realtor . Please complete both the form below and the preferred method of contact. Within 24 hours, a realtor will respond to further discuss your needs. Thanks!
(*) Required

* First Name:

* Last Name:

Address:


City:

State:

* Zip Code:

* Phone#:
- -
(See Privacy Policy )

* Email Address:

I prefer to be contacted by:
Phone contact=='phone')?"Checked":"";?> > Email contact=='email')?"Checked":"";?> >

* I wish to:
  Buy/Preview > or Sell > a home

" id="buy" >

Buy a Home
(price range in dollars):

From: $ ,000
To:     $ ,000

#Rooms:


#Baths:


Type of Unit:

Other (please specify):


Minimum Square Footage:


#Floors:

Property Features :

> Parking/Garage,# of cars 
> Basement
> Fireplace
> Main Floor Bathroom
> Central Air
> Forced Air
> Main Floor Bedroom
> Den/Office
> Hardwood Floors

> Spa/Hot Tub
> Dining Room
> Horse Facilities
> Swimming Pool
> Disability Features
> Horses Allowed
> Family Room
> Laundry Room

Lot Features :

Lot Size (in square feet):


> Corner Lot
> Waterfront
> River View
> Cul-de-Sac
> City Lights View
> Ocean View
> Golf Course
> Mountain View
> Water View

Community Features :

> Clubhouse/Rec. Room
> Recreation Facilities
> Spa/Hot Tub
> Exercise Area
> Security Features
> Swimming Pool
> Golf
> Senior Community
> Tennis


  
">

Sell a Home
Type of Property:

Other (please specify):

Desired Selling Price:
$ ,000

Address of Property :

Street Number:


Street Name:


Unit Number:


City:

State:


Zip Code:


#Rooms:


#Baths:


Year Built:


#Floors:


Describe the living area of your home/condo
(up to 250 words):


When do you expect to sell?


When do you expect to choose an agent?


What is your reason for the sale?

If other, please enter
reason:


Have proposals sent to you until:


Describe the home you are selling. This enables agents to provide you with a customized
response (up to 250 words):