Code |
Context$address = "Wildsch%C3%B6nau+city"
$key = "ABQIAAAAp3TmINndf7OS9mkQOi5CtBTa5o-5bb-h8VKyypuuHHrMl2wuORR9deU8vt-FmNvbt855R4kZb13Rlg"
$google_uri = "http://maps.google.com/maps/geo?q=Wildsch%C3%B6nau+city&output=xml&key=ABQIAAAAp3TmINndf7OS9mkQOi5CtBTa5o-5bb-h8VKyypuuHHrMl2wuORR9deU8vt-FmNvbt855R4kZb13Rlg&oe=utf8"
$xml = SimpleXMLElement
SimpleXMLElement::$Response = SimpleXMLElement
SimpleXMLElement::$name = "Wildschönau city"
SimpleXMLElement::$Status = SimpleXMLElement
SimpleXMLElement::$code = "200"
SimpleXMLElement::$request = "geocode"
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::$Placemark = SimpleXMLElement
SimpleXMLElement::$@attributes = array(
"id" => "p1"
)
SimpleXMLElement::$address = "Wildschönau, Austria"
SimpleXMLElement::$AddressDetails = SimpleXMLElement
SimpleXMLElement::$@attributes = array(
"Accuracy" => "4"
)
SimpleXMLElement::$Country = SimpleXMLElement
SimpleXMLElement::$CountryNameCode = "AT"
SimpleXMLElement::$CountryName = "Österreich"
SimpleXMLElement::$AdministrativeArea = SimpleXMLElement
SimpleXMLElement::$AdministrativeAreaName = "Tirol"
SimpleXMLElement::$Locality = SimpleXMLElement
SimpleXMLElement::$LocalityName = "Wildschönau"
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::$ExtendedData = SimpleXMLElement
SimpleXMLElement::$LatLonBox = SimpleXMLElement
SimpleXMLElement::$@attributes = array(
"north" => "47.4480352",
"south" => "47.4329417",
"east" => "12.0573214",
"west" => "12.0253066"
)
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::$Point = SimpleXMLElement
SimpleXMLElement::$coordinates = "12.0413140,47.4404890,0"
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
SimpleXMLElement::asXML()
SimpleXMLElement::saveXML()
SimpleXMLElement::xpath()
SimpleXMLElement::registerXPathNamespace()
SimpleXMLElement::attributes()
SimpleXMLElement::children()
SimpleXMLElement::getNamespaces()
SimpleXMLElement::getDocNamespaces()
SimpleXMLElement::getName()
SimpleXMLElement::addChild()
SimpleXMLElement::addAttribute()
$http_response_header = array(
"HTTP/1.0 200 OK",
"Content-Type: text/xml; charset=UTF-8",
"Vary: Accept-Language",
"Date: Tue, 22 May 2012 07:04:08 GMT",
"Server: mafe",
"Cache-Control: private",
"X-XSS-Protection: 1; mode=block",
"X-Frame-Options: SAMEORIGIN"
)
$page = "<?xml version="1.0" encoding="UTF-8" ?>
<kml xmlns="http://earth.google.com/kml/2.0"><Response>
<name>Wildschönau city</name>
<Status>
<code>200</code>
<request>geocode</request>
</Status>
<Placemark id="p1">
<address>Wildschönau, Austria</address>
<AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>AT</CountryNameCode><CountryName>Österreich</CountryName><AdministrativeArea><AdministrativeAreaName>Tirol</AdministrativeAreaName><Locality><LocalityName>Wildschönau</LocalityName></Locality></AdministrativeArea></Country></AddressDetails>
<ExtendedData>
<LatLonBox north="47.4480352" south="47.4329417" east="12.0573214" west="12.0253066" />
</ExtendedData>
<Point><coordinates>12.0413140,47.4404890,0</coordinates></Point>
</Placemark>
</Response></kml>
"
$locality = null
// get the city
$city = (string) $locality->LocalityName;
Search::importAndReturnGoogleGeocode() - APP/models/search.php, line 69
Search::getGeocodeForAddress() - APP/models/search.php, line 121
ItemsController::fixLocation() - APP/controllers/items_controller.php, line 347
ItemsController::q() - APP/controllers/items_controller.php, line 506
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 268
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 240
[main] - APP/webroot/index.php, line 84