Code |
Context$address = "M%C3%B6lln+city"
$key = "ABQIAAAAp3TmINndf7OS9mkQOi5CtBTa5o-5bb-h8VKyypuuHHrMl2wuORR9deU8vt-FmNvbt855R4kZb13Rlg"
$google_uri = "http://maps.google.com/maps/geo?q=M%C3%B6lln+city&output=xml&key=ABQIAAAAp3TmINndf7OS9mkQOi5CtBTa5o-5bb-h8VKyypuuHHrMl2wuORR9deU8vt-FmNvbt855R4kZb13Rlg&oe=utf8"
$xml = SimpleXMLElement
SimpleXMLElement::$Response = SimpleXMLElement
SimpleXMLElement::$name = "Mölln 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 = "Mölln, Germany"
SimpleXMLElement::$AddressDetails = SimpleXMLElement
SimpleXMLElement::$@attributes = array(
"Accuracy" => "4"
)
SimpleXMLElement::$Country = SimpleXMLElement
SimpleXMLElement::$CountryNameCode = "DE"
SimpleXMLElement::$CountryName = "Deutschland"
SimpleXMLElement::$AdministrativeArea = SimpleXMLElement
SimpleXMLElement::$AdministrativeAreaName = "Schleswig-Holstein"
SimpleXMLElement::$Locality = SimpleXMLElement
SimpleXMLElement::$LocalityName = "Mölln"
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" => "53.6465557",
"south" => "53.5936100",
"east" => "10.7531609",
"west" => "10.6251015"
)
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 = "10.6891312,53.6200912,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: Sat, 19 May 2012 10:53:10 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>Mölln city</name>
<Status>
<code>200</code>
<request>geocode</request>
</Status>
<Placemark id="p1">
<address>Mölln, Germany</address>
<AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>DE</CountryNameCode><CountryName>Deutschland</CountryName><AdministrativeArea><AdministrativeAreaName>Schleswig-Holstein</AdministrativeAreaName><Locality><LocalityName>Mölln</LocalityName></Locality></AdministrativeArea></Country></AddressDetails>
<ExtendedData>
<LatLonBox north="53.6465557" south="53.5936100" east="10.7531609" west="10.6251015" />
</ExtendedData>
<Point><coordinates>10.6891312,53.6200912,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