UpMyStreet.com api class to get area info ( uk only )

If you want to get area info of your street, you can get it from http://www.upmystreet.com/ very easily. It provides a list of feeds for your area [uk only], see here http://api.upmystreet.com/documentation/xml/index.html.

You have to signed up for api, They will provide you an API KEY, send your request to specific feed url with location id or string and key. They will return result as xml. I’ve built a class which takes Property averages, council tax, crime statistics and educational statistics. This classwill parse xml and convert it to array, remember it will work only in php 5. I’ve used SimpleXML. Here is the class code –

<?php
// $Id: ums.pa.class.php 

/**
 * propertyAverage class
 *
 * @package upmystreet api
 * @author Musa
 **/

	final class PropertyAverage{

		public  $cache_path = 'cache/';	//to disable cache
		public	$cache_time = 0;	//cache disabled by default

		private $hpi_url = 'http://api.upmystreet.com/services/xml/v3/property-averages.xml'; //property averages api url
		private $ct_url = 'http://api.upmystreet.com/services/xml/v3/council-tax.xml';		  //council tax api url
		private $crime_url = 'http://api.upmystreet.com/services/xml/v3/crime-statistics.xml';		//Crime api url
		private $edu_url = 'http://api.upmystreet.com/services/xml/v3/education-overview.xml';		//Education api url
		private $edu_url_primary = 'http://api.upmystreet.com/services/xml/v3/education-primary-schools.xml';	//Education primary api url
		private $edu_url_secondary = 'http://api.upmystreet.com/services/xml/v3/education-secondary-schools.xml';	//Education secondary api url
		private $edu_url_sixth = 'http://api.upmystreet.com/services/xml/v3/education-sixth-schools.xml';	//Education sixth api url
		private $transport_overview_url = 'http://api.upmystreet.com/services/xml/v3/transport-overview.xml';	//Transport overview info
		
		private $param = array();
		private $pa_info = array();

		function __construct($key, $location) {
	       $this->param['key'] = $key;
		   $this->param['location'] = $location;
		   //$this->param['location'] = urlencode($location);
	    }

	   // return House Price Index
	   public function pa_info(){
		
		$this->api_url  = $this->hpi_url.'?'.http_build_query($this->param);
		$cache_file = substr($this->api_url, strrpos($this->api_url,"/")+1 );
		$file = $this->cache_path.sha1($cache_file);
		$timediff = @(time()-filemtime($file));

		if(file_exists($file) && $timediff<$this->cache_time){
			$handle = fopen($file,'r');
			$content = fread($handle,filesize($file));
			fclose($handle);
			$pa_info = unserialize($content);

		}else{


			$xml_data = new SimpleXMLElement($this->api_url,null,true);

			//location info
			$pa_info['location']['id']= (string) $xml_data->{'property-averages'}->metadata->location->id;
			$pa_info['location']['latitude']= (float) $xml_data->{'property-averages'}->metadata->location->{'latitude-longitude'}->latitude;
			$pa_info['location']['longitude']= (float) $xml_data->{'property-averages'}->metadata->location->{'latitude-longitude'}->longitude;	

			//local price average
			$pa_info['local']['detached']['price']	 = (float)	$xml_data->{'property-averages'}->local->averages->{'property-type'}[0]->price;
			$pa_info['local']['detached']['number-of-sales'] = (int) $xml_data->{'property-averages'}->local->averages->{'property-type'}[0]->{'number-of-sales'};
			$pa_info['local']['semi']['price']	 = (float)	$xml_data->{'property-averages'}->local->averages->{'property-type'}[1]->price;
			$pa_info['local']['semi']['number-of-sales'] = (int) $xml_data->{'property-averages'}->local->averages->{'property-type'}[1]->{'number-of-sales'};
			$pa_info['local']['terraced']['price']	 = (float)	$xml_data->{'property-averages'}->local->averages->{'property-type'}[2]->price;
			$pa_info['local']['terraced']['number-of-sales'] = (int) $xml_data->{'property-averages'}->local->averages->{'property-type'}[2]->{'number-of-sales'};
			$pa_info['local']['flat']['price']	 = (float)	$xml_data->{'property-averages'}->local->averages->{'property-type'}[3]->price;
			$pa_info['local']['flat']['number-of-sales'] = (int) $xml_data->{'property-averages'}->local->averages->{'property-type'}[3]->{'number-of-sales'};		

			$pa_info['uk']['detached']['price']	 = (float)	$xml_data->{'property-averages'}->uk->averages->{'property-type'}[0]->price;
			$pa_info['uk']['detached']['number-of-sales'] = (int) $xml_data->{'property-averages'}->uk->averages->{'property-type'}[0]->{'number-of-sales'};
			$pa_info['uk']['semi']['price']	 = (float)	$xml_data->{'property-averages'}->uk->averages->{'property-type'}[1]->price;
			$pa_info['uk']['semi']['number-of-sales'] = (int) $xml_data->{'property-averages'}->uk->averages->{'property-type'}[1]->{'number-of-sales'};
			$pa_info['uk']['terraced']['price']	 = (float)	$xml_data->{'property-averages'}->uk->averages->{'property-type'}[2]->price;
			$pa_info['uk']['terraced']['number-of-sales'] = (int) $xml_data->{'property-averages'}->uk->averages->{'property-type'}[2]->{'number-of-sales'};
			$pa_info['uk']['flat']['price']	 = (float)	$xml_data->{'property-averages'}->uk->averages->{'property-type'}[3]->price;
			$pa_info['uk']['flat']['number-of-sales'] = (int) $xml_data->{'property-averages'}->uk->averages->{'property-type'}[3]->{'number-of-sales'};		

			if($this->cache_path!=''){
				//create the cachefile
				$content = serialize($pa_info);
				$handle = fopen($file, "w+");

			    // Write $somecontent to our opened file.
			    if (fwrite($handle, $content) === FALSE) {
			        echo "Cannot write to file ($file)";
			        exit;
			    }
				fclose($handle);

			}			

		}

		 return $pa_info;
		}

	   // return council tax
	   public function get_council_tax(){

		$this->api_url  = $this->ct_url.'?'.http_build_query($this->param);
		$cache_file = substr($this->api_url, strrpos($this->api_url,"/")+1 );
		$file = $this->cache_path.sha1($cache_file);
		$timediff = @(time()-filemtime($file));

		if(file_exists($file) && $timediff<$this->cache_time){
			$handle = fopen($file,'r');
			$content = fread($handle,filesize($file));
			fclose($handle);
			$api_info = unserialize($content);

		}else{


			$xml_data = new SimpleXMLElement($this->api_url,null,true);
	//		$b = (string) $xml_data->xpath("//council-tax/local-authority/name");

			$api_info['national']['authority'] = (string) $xml_data->{'council-tax'}->national->country;
			//national tax bands
			foreach($xml_data->xpath("//council-tax/national/bands/band") as $idx=>$national){

				$api_info['national']['stat'][$idx]['band_range']= (float) $national[0];
				foreach ( $national[0]->attributes() as $key => $val ) {
					if($key=='name')
				    $api_info['national']['stat'][$idx]['band_name']= (string) $val;
				}
			}

			//local tax bands
			$api_info['local']['authority'] = (string) $xml_data->{'council-tax'}->{'local-authority'}->name;	
			foreach($xml_data->xpath("//council-tax/local/bands/band") as $idx=>$local){

				foreach ( $local[0]->attributes() as $key => $val ) {
					if($key=='name')
				    $api_info['local']['stat'][$idx]['band_name']= (string) $val;
				}
				$api_info['local']['stat'][$idx]['band_range']= (float) $local[0];

			}

			if($this->cache_path!=''){
				//create the cachefile
				$content = serialize($api_info);
				$handle = fopen($file, "w+");

			    // Write $somecontent to our opened file.
			    if (fwrite($handle, $content) === FALSE) {
			        echo "Cannot write to file ($file)";
			        exit;
			    }
				fclose($handle);

			}			

		}

		 return $api_info;
		}

		   // return crime statistics
	   public function get_crime_stat(){
		
		$this->api_url  = $this->crime_url.'?'.http_build_query($this->param);
		$cache_file = substr($this->api_url, strrpos($this->api_url,"/")+1 );
		$file = $this->cache_path.sha1($cache_file);
		$timediff = @(time()-filemtime($file));

		if(file_exists($file) && $timediff<$this->cache_time){
			$handle = fopen($file,'r');
			$content = fread($handle,filesize($file));
			fclose($handle);
			$api_info = unserialize($content);

		}else{

			$xml_data = new SimpleXMLElement($this->api_url,null,true);
			$national = $xml_data->xpath("//crime/national/country/name");
			
			//national crime info
			$api_info['national']['authority'] = (string) $national[0];
			
			foreach($xml_data->xpath("//crime/national/statistics/item") as $idx=>$national){

				$api_info['national']['stats'][$idx]['value']= (float) $national[0];
				foreach ( $national[0]->attributes() as $key => $val ) {
					if($key=='title')
				    $api_info['national']['stats'][$idx]['title']= (string) $val;
				}
			}

			$local = $xml_data->xpath("//crime/local/local-authority/name");			
			//national crime info
			$api_info['local']['authority'] = (string) $local[0];

			//local crime info
			foreach($xml_data->xpath("//crime/local/statistics/item") as $idx=>$local){

				$api_info['local']['stats'][$idx]['value']= (float) $local[0];
				foreach ( $local[0]->attributes() as $key => $val ) {
					if($key=='title')
				    $api_info['local']['stats'][$idx]['title']= (string) $val;
				}
			}

			if($this->cache_path!=''){
				//create the cachefile
				$content = serialize($api_info);
				$handle = fopen($file, "w+");

			    // Write $somecontent to our opened file.
			    if (fwrite($handle, $content) === FALSE) {
			        echo "Cannot write to file ($file)";
			        exit;
			    }
				fclose($handle);
			}

		}

		 return $api_info;
		}

		// return education stats
	   public function get_edu_info(){

		$this->api_url  = $this->edu_url.'?'.http_build_query($this->param);
		$cache_file = substr($this->api_url, strrpos($this->api_url,"/")+1 );
		$file = $this->cache_path.sha1($cache_file);
		$timediff = @(time()-filemtime($file));

		if(file_exists($file) && $timediff<$this->cache_time){
			$handle = fopen($file,'r');
			$content = fread($handle,filesize($file));
			fclose($handle);
			$api_info = unserialize($content);

		}else{

			$xml_data = new SimpleXMLElement($this->api_url,null,true);

			$primary = $xml_data->xpath("//education-overview/primary");
			$secondary = $xml_data->xpath("//education-overview/secondary");
			$sixth_form = $xml_data->xpath("//education-overview/sixth-form");  

			//primary info
			$api_info['primary']['name'] = (string) $primary[0]->name;
			$api_info['primary']['independent'] = (string) $primary[0]->{'is-independent'};
			$api_info['primary']['distance'] = (float) $primary[0]->distance;
			$api_info['primary']['address1'] = (string) $primary[0]->address1;
			$api_info['primary']['address2'] = (string) $primary[0]->address2;
			$api_info['primary']['county'] = (string) $primary[0]->county;
			$api_info['primary']['town'] = (string) $primary[0]->town;
			$api_info['primary']['postcode'] = (string) $primary[0]->postcode;
			$api_info['primary']['local-education-authority'] = (string) $primary[0]->{'local-education-authority'};
			$api_info['primary']['age-range'] = (string) $primary[0]->{'age-range'};

			foreach($xml_data->xpath("//education-overview/primary/statistics/item") as	$idx=>$stat){

				foreach ( $stat[0]->attributes() as $key => $val ) {
					if($key=='title'){
						$api_info['primary']['stat'][$idx]['title']=(string) $val;
					}
				}
				$api_info['primary']['stat'][$idx]['value']=(string)$stat[0];

			}

			//secondary info
			$api_info['secondary']['name'] = (string) $secondary[0]->name;
			$api_info['secondary']['independent'] = (string) $secondary[0]->{'is-independent'};
			$api_info['secondary']['distance'] = (float) $secondary[0]->distance;
			$api_info['secondary']['address1'] = (string) $secondary[0]->address1;
			$api_info['secondary']['address2'] = (string) $secondary[0]->address2;
			$api_info['secondary']['county'] = (string) $secondary[0]->county;
			$api_info['secondary']['town'] = (string) $secondary[0]->town;
			$api_info['secondary']['postcode'] = (string) $secondary[0]->postcode;
			$api_info['secondary']['local-education-authority'] = (string) $secondary[0]->{'local-education-authority'};
			$api_info['secondary']['age-range'] = (string) $secondary[0]->{'age-range'};

			foreach($xml_data->xpath("//education-overview/secondary/statistics/item") as	$idx=>$stat){

				foreach ( $stat[0]->attributes() as $key => $val ) {
					if($key=='title'){
						$api_info['secondary']['stat'][$idx]['title']=(string) $val;
					}
				}
				$api_info['secondary']['stat'][$idx]['value']=(string)$stat[0];

			}

			//sixth form info
			$api_info['sixth_form']['name'] = (string) $sixth_form[0]->name;
			$api_info['sixth_form']['independent'] = (string) $sixth_form[0]->{'is-independent'};
			$api_info['sixth_form']['distance'] = (float) $sixth_form[0]->distance;
			$api_info['sixth_form']['address1'] = (string) $sixth_form[0]->address1;
			$api_info['sixth_form']['address2'] = (string) $sixth_form[0]->address2;
			$api_info['sixth_form']['county'] = (string) $sixth_form[0]->county;
			$api_info['sixth_form']['town'] = (string) $sixth_form[0]->town;
			$api_info['sixth_form']['postcode'] = (string) $sixth_form[0]->postcode;
			$api_info['sixth_form']['local-education-authority'] = (string) $sixth_form[0]->{'local-education-authority'};
			$api_info['sixth_form']['age-range'] = (string) $sixth_form[0]->{'age-range'};

			foreach($xml_data->xpath("//education-overview/sixth-form/statistics/item") as	$idx=>$stat){

				foreach ( $stat[0]->attributes() as $key => $val ) {
					if($key=='title'){
						$api_info['sixth_form']['stat'][$idx]['title']=(string) $val;
					}
				}
				$api_info['sixth_form']['stat'][$idx]['value']=(string)$stat[0];

			}									

			if($this->cache_path!=''){
				//create the cachefile
				$content = serialize($api_info);
				$handle = fopen($file, "w+");

			    // Write $somecontent to our opened file.
			    if (fwrite($handle, $content) === FALSE) {
			        echo "Cannot write to file ($file)";
			        exit;
			    }
				fclose($handle);
			}

		}

		 return $api_info;
		}
		
		// return nearest primary schools info
	   public function nearest_primary_schools(){
		
		$params = $this->param;
		$params['count']= 5;
		
		$this->api_url  = $this->edu_url_primary.'?'.http_build_query($params);
		$cache_file = substr($this->api_url, strrpos($this->api_url,"/")+1 );
		$file = $this->cache_path.sha1($cache_file);
		$timediff = @(time()-filemtime($file));

		if(file_exists($file) && $timediff<$this->cache_time){
			$handle = fopen($file,'r');
			$content = fread($handle,filesize($file));
			fclose($handle);
			$api_info = unserialize($content);

		}else{

			$xml_data = new SimpleXMLElement($this->api_url,null,true);
			
			foreach($xml_data->xpath("//school") as $idx=>$primary)
			{
				//print_R($primary);
				$api_info[$idx]['name'] = (string) $primary->name;
				$api_info[$idx]['distance'] = (float) $primary->distance;
				$api_info[$idx]['address1'] = (string) $primary->address1;
				$api_info[$idx]['address2'] = (string) $primary->address2;
				$api_info[$idx]['county'] = (string) $primary->county;
				$api_info[$idx]['town'] = (string) $primary->town;				
				$api_info[$idx]['postcode'] = (string) $primary->postcode;
				$api_info[$idx]['local-education-authority'] = (string) $primary->{'local-education-authority'};
				$api_info[$idx]['age-range'] = (string) $primary->{'age-range'};
				$x=0;

				//stats
				foreach($primary->statistics->item as $stat){
					
					foreach($stat[0]->attributes() as $key=>$val){
							$api_info[$idx]['stat'][$x][$key]=(string) $val;
					}
					$api_info[$idx]['stat'][$x++]['value'] = (string) $stat[0];
				}
				
			}

			if($this->cache_path!=''){
				//create the cachefile
				$content = serialize($api_info);
				$handle = fopen($file, "w+");

			    // Write $somecontent to our opened file.
			    if (fwrite($handle, $content) === FALSE) {
			        echo "Cannot write to file ($file)";
			        exit;
			    }
				fclose($handle);
			}

		}

		 return $api_info;
		}
		
		// return nearest secondary schools info
		function nearest_secondary_schools(){
		
			$params = $this->param;
			$params['count']= 5;
		
			$this->api_url  = $this->edu_url_secondary.'?'.http_build_query($params);
			$cache_file = substr($this->api_url, strrpos($this->api_url,"/")+1 );
			$file = $this->cache_path.sha1($cache_file);
			$timediff = @(time()-filemtime($file));

			if(file_exists($file) && $timediff<$this->cache_time){
				$handle = fopen($file,'r');
				$content = fread($handle,filesize($file));
				fclose($handle);
				$api_info = unserialize($content);

			}else{

				$xml_data = new SimpleXMLElement($this->api_url,null,true);
			
				foreach($xml_data->xpath("//school") as $idx=>$secondary)
				{
					$api_info[$idx]['name'] = (string) $secondary->name;
					$api_info[$idx]['distance'] = (float) $secondary->distance;	//in miles
					$api_info[$idx]['address1'] = (string) $secondary->address1;
					$api_info[$idx]['address2'] = (string) $secondary->address2;
					$api_info[$idx]['county'] = (string) $secondary->county;
					$api_info[$idx]['town'] = (string) $secondary->town;				
					$api_info[$idx]['postcode'] = (string) $secondary->postcode;
					$api_info[$idx]['local-education-authority'] = (string) $secondary->{'local-education-authority'};
					$api_info[$idx]['age-range'] = (string) $secondary->{'age-range'};
					$x=0;

					//stats
					foreach($secondary->statistics->item as $stat){
						
						foreach($stat[0]->attributes() as $key=>$val){
								$api_info[$idx]['stat'][$x][$key]=(string) $val;
						}
						$api_info[$idx]['stat'][$x++]['value'] = (string) $stat[0];
					}
				
				}

				if($this->cache_path!=''){
					//create the cachefile
					$content = serialize($api_info);
					$handle = fopen($file, "w+");

				    // Write $somecontent to our opened file.
				    if (fwrite($handle, $content) === FALSE) {
				        echo "Cannot write to file ($file)";
				        exit;
				    }
					fclose($handle);
				}

			}

		 return $api_info;			
			
		}
		
		//return nearest sixth schools info
		function nearest_sixth_schools()
		{
			$params = $this->param;
			$params['count']= 5;

			$this->api_url  = $this->edu_url_sixth.'?'.http_build_query($params);
			$cache_file = substr($this->api_url, strrpos($this->api_url,"/")+1 );
			$file = $this->cache_path.sha1($cache_file);
			$timediff = @(time()-filemtime($file));

			if(file_exists($file) && $timediff<$this->cache_time){
				$handle = fopen($file,'r');
				$content = fread($handle,filesize($file));
				fclose($handle);
				$api_info = unserialize($content);

			}else{

				$xml_data = new SimpleXMLElement($this->api_url,null,true);

				foreach($xml_data->xpath("//school") as $idx=>$sixth)
				{
					$api_info[$idx]['name'] = (string) $sixth->name;
					$api_info[$idx]['distance'] = (float) $sixth->distance;	//in miles
					$api_info[$idx]['address1'] = (string) $sixth->address1;
					$api_info[$idx]['address2'] = (string) $sixth->address2;
					$api_info[$idx]['county'] = (string) $sixth->county;
					$api_info[$idx]['town'] = (string) $sixth->town;				
					$api_info[$idx]['postcode'] = (string) $sixth->postcode;
					$api_info[$idx]['local-education-authority'] = (string) $sixth->{'local-education-authority'};
					$api_info[$idx]['age-range'] = (string) $sixth->{'age-range'};
					$x=0;
					
					//stats
					foreach($sixth->statistics->item as $stat){
						
						foreach($stat[0]->attributes() as $key=>$val){
								$api_info[$idx]['stat'][$x][$key]=(string) $val;
						}
						$api_info[$idx]['stat'][$x++]['value'] = (string) $stat[0];
					}
				}

				if($this->cache_path!=''){
					//create the cachefile
					$content = serialize($api_info);
					$handle = fopen($file, "w+");

				    // Write $somecontent to our opened file.
				    if (fwrite($handle, $content) === FALSE) {
				        echo "Cannot write to file ($file)";
				        exit;
				    }
					fclose($handle);
				}

			}

		 return $api_info;
					
		}		

		//return transport overview info
		function get_transport_overview()
		{
			$params = $this->param;

			$this->api_url  = $this->transport_overview_url.'?'.http_build_query($params);
			$cache_file = substr($this->api_url, strrpos($this->api_url,"/")+1 );
			$file = $this->cache_path.sha1($cache_file);
			$timediff = @(time()-filemtime($file));

			if(file_exists($file) && $timediff<$this->cache_time){
				$handle = fopen($file,'r');
				$content = fread($handle,filesize($file));
				fclose($handle);
				$api_info = unserialize($content);

			}else{

				$xml_data = new SimpleXMLElement($this->api_url,null,true);
				
				//get airport info
				$airport = $xml_data->xpath("//airport");
				$coach_station = $xml_data->xpath("//coach-station");
				$ferry_port = $xml_data->xpath("//ferry-port");
				$london_underground_tube_station = $xml_data->xpath("//london-underground-tube-station");
				$railway_station = $xml_data->xpath("//railway-station");
				
				//airport info
				$api_info['airport']['name'] = (string) $airport[0]->name;
				$api_info['airport']['address'] = (string) $airport[0]->address;
				$api_info['airport']['phone'] = (string) $airport[0]->telephone;
				$api_info['airport']['distance'] = (string) $airport[0]->distance;
				
				//coach_station info
				$api_info['coach_station']['name'] = (string) $coach_station[0]->name;
				$api_info['coach_station']['address'] = (string) $coach_station[0]->address;
				$api_info['coach_station']['phone'] = (string) $coach_station[0]->telephone;
				$api_info['coach_station']['distance'] = (string) $coach_station[0]->distance;

				//ferry_port info
				$api_info['ferry_port']['name'] = (string) $ferry_port[0]->name;
				$api_info['ferry_port']['address'] = (string) $ferry_port[0]->address;
				$api_info['ferry_port']['phone'] = (string) $ferry_port[0]->telephone;
				$api_info['ferry_port']['distance'] = (string) $ferry_port[0]->distance;


				//london_underground_tube_station info
				$api_info['london_underground_tube_station']['name'] = (string) $london_underground_tube_station[0]->name;
				$api_info['london_underground_tube_station']['address'] = (string) $london_underground_tube_station[0]->address;
				$api_info['london_underground_tube_station']['postcode'] = (string) $london_underground_tube_station[0]->postcode;
				$api_info['london_underground_tube_station']['distance'] = (string) $london_underground_tube_station[0]->distance;

				//railway_station info
				$api_info['railway_station']['name'] = (string) $railway_station[0]->name;
				$api_info['railway_station']['address'] = (string) $railway_station[0]->address;
				$api_info['railway_station']['postcode'] = (string) $railway_station[0]->postcode;
				$api_info['railway_station']['distance'] = (string) $railway_station[0]->distance;
																
				if($this->cache_path!=''){
					//create the cachefile
					$content = serialize($api_info);
					$handle = fopen($file, "w+");

				    // Write $somecontent to our opened file.
				    if (fwrite($handle, $content) === FALSE) {
				        echo "Cannot write to file ($file)";
				        exit;
				    }
					fclose($handle);
				}

			}

		 return $api_info;
					
		}
		
}
?>

Here are the sample code to use this

<?php

	include_once 'ums.pa.class.php';
	$feed	= new PropertyAverage('demo','sw1w0sr');	//first one is api key, second one is location string(zip code, street)
	$feed->cache_path = 'cache/';
	$feed->cache_time = 300;
/*
    $property_average = $feed->pa_info();
	$edu_overview = $feed->get_edu_info();

	print_r($property_average);
	print_r($edu_overview);
	*/
	
	//education details
	$edu_primary_schools = $feed->nearest_primary_schools();
	$edu_secondary_schools = $feed->nearest_secondary_schools();
	$edu_sixth_schools =  $feed->nearest_sixth_schools();
	
	//transport details
	$transport_overview = $feed->get_transport_overview();
	
	//crime details
	$crime_stat = $feed->get_crime_stat();
	
	//council tax feeds
	$council_tax = $feed->get_council_tax();
	

	//print_r($edu_primary_schools);
	//print_r($edu_secondary_schools);
	//print_r($edu_sixth_schools);
	//print_r($transport_overview);
	//print_r($crime_stat);
	print_r($council_tax);
	
	


?>

Hope this will helpful.

Advertisements

One thought on “UpMyStreet.com api class to get area info ( uk only )

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s