PHP Demographics Examples

From CDYNE Wiki
Jump to: navigation, search

Contents

GetIncomeHouseValueByAddress

<?php
$client = new SoapClient('http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx?wsdl');
$param = array(
'AddressLine1' => '505 Independence Parkway',
'City' => 'Chesapeake',
'StateAbbrev' => 'VA',
'ZipCode' => '23320',
'LicenseKey' => 'YOUR LICENSE KEY'
);
$result = $client->GetIncomeHouseValueByAddress($param);
echo "<pre>"; //Used for friendlier formatting of return.
print_r($result);
echo "</pre>";
?>

GetLocationInformationByAddress

<?php
$client = new SoapClient('http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx?wsdl');
$param = array(
'AddressLine1' => '505 Independence Parkway',
'City' => 'Chesapeake',
'StateAbbrev' => 'VA',
'ZipCode' => '23320',
'LicenseKey' => 'YOUR LICENSE KEY'
);
$result = $client->GetLocationInformationByAddress($param);
echo "<pre>"; //Used for friendlier formatting of return.
print_r($result);
echo "</pre>";
?>

GetLocationInformationByLatitudeLongitude

<?php
$client = new SoapClient('http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx?wsdl');
$param = array(
'Latitude' => '36.761560',
'Longitude' => '-76.259964',
'LicenseKey' => 'YOUR LICENSE KEY'
);
$result = $client->GetLocationInformationByLatitudeLongitude($param);
echo "<pre>"; //Used for friendlier formatting of return.
print_r($result);
echo "</pre>";
?>

GetPlaceIDbyAddress

<?php
$client = new SoapClient('http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx?wsdl');
$param = array(
'AddressLine1' => '505 Independence Parkway',
'City' => 'Chesapeake',
'StateAbbrev' => 'VA',
'ZipCode' => '23320',
'LicenseKey' => 'YOUR LICENSE KEY'
);
$result = $client->GetPlaceIDbyAddress($param);
echo "<pre>"; //Used for friendlier formatting of return.
print_r($result);
echo "</pre>";
?>

GetSummaryInformationByPlaceID

<?php
$client = new SoapClient('http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx?wsdl');
$param = array(
'StateAbbrev' => 'VA',
'PlaceID' => '0018466'
);
$result = $client->GetSummaryInformationByPlaceID($param);
echo "<pre>"; //Used for friendlier formatting of return.
print_r($result);
echo "</pre>";
?>

GetVersion

<?php
$client = new SoapClient('http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx?wsdl');
$param = array();
$result = $client->GetVersion($param);
echo "<pre>"; //Used for friendlier formatting of return.
print_r($result);
echo "</pre>";
?>
Personal tools
Namespaces

Variants
Actions
Navigation
Tools

Trial Key