Property changes on: trunk/phase3/skins/vector/cssjanus/LICENSE |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 1 | + native |
Property changes on: trunk/phase3/skins/vector/cssjanus/COPYING |
___________________________________________________________________ |
Name: svn:eol-style |
2 | 2 | + native |
Property changes on: trunk/phase3/js2/mwEmbed/example_usage/Player_RelatedVideos.html |
___________________________________________________________________ |
Name: svn:eol-style |
3 | 3 | + native |
Property changes on: trunk/extensions/LiquidThreads/pages/SpecialMergeThread.php |
___________________________________________________________________ |
Name: svn:eol-style |
4 | 4 | + native |
Index: trunk/extensions/Maps/Geocoders/Maps_GeonamesGeocoder.php |
— | — | @@ -1,42 +1,42 @@ |
2 | | -<?php
|
3 | | -
|
4 | | -/**
|
5 | | - * GeoNames Web Services Documentation: http://www.geonames.org/export/geonames-search.html
|
6 | | - *
|
7 | | - * @file Maps_GeonamesGeocoder.php
|
8 | | - * @ingroup Maps
|
9 | | - *
|
10 | | - * @author Jeroen De Dauw
|
11 | | - * Thanks go to Joel Natividad for pointing me to the GeoNames services.
|
12 | | - */
|
13 | | -
|
14 | | -if( !defined( 'MEDIAWIKI' ) ) {
|
15 | | - die( 'Not an entry point.' );
|
16 | | -}
|
17 | | -
|
18 | | -final class MapsGeonamesGeocoder extends MapsBaseGeocoder {
|
19 | | -
|
20 | | - /**
|
21 | | - * @see MapsBaseGeocoder::geocode()
|
22 | | - *
|
23 | | - * @param string $address
|
24 | | - */
|
25 | | - public static function geocode($address) {
|
26 | | - // Create the request url
|
27 | | - $requestURL = "http://ws.geonames.org/search?q=". urlencode($address) ."&maxRows=1&style=SHORT";
|
28 | | -
|
29 | | - $result = self::GetCurlResponse($requestURL);
|
30 | | -
|
31 | | - $lon = self::getXmlElementValue($result, "lng");
|
32 | | - $lat = self::getXmlElementValue($result, "lat");
|
33 | | -
|
34 | | - // In case one of the values is not found, return false
|
35 | | - if (!$lon || !$lat) return false;
|
36 | | -
|
37 | | - return array(
|
38 | | - 'lat' => $lat,
|
39 | | - 'lon' => $lon
|
40 | | - );
|
41 | | - }
|
42 | | -
|
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * GeoNames Web Services Documentation: http://www.geonames.org/export/geonames-search.html |
| 6 | + * |
| 7 | + * @file Maps_GeonamesGeocoder.php |
| 8 | + * @ingroup Maps |
| 9 | + * |
| 10 | + * @author Jeroen De Dauw |
| 11 | + * Thanks go to Joel Natividad for pointing me to the GeoNames services. |
| 12 | + */ |
| 13 | + |
| 14 | +if( !defined( 'MEDIAWIKI' ) ) { |
| 15 | + die( 'Not an entry point.' ); |
| 16 | +} |
| 17 | + |
| 18 | +final class MapsGeonamesGeocoder extends MapsBaseGeocoder { |
| 19 | + |
| 20 | + /** |
| 21 | + * @see MapsBaseGeocoder::geocode() |
| 22 | + * |
| 23 | + * @param string $address |
| 24 | + */ |
| 25 | + public static function geocode($address) { |
| 26 | + // Create the request url |
| 27 | + $requestURL = "http://ws.geonames.org/search?q=". urlencode($address) ."&maxRows=1&style=SHORT"; |
| 28 | + |
| 29 | + $result = self::GetCurlResponse($requestURL); |
| 30 | + |
| 31 | + $lon = self::getXmlElementValue($result, "lng"); |
| 32 | + $lat = self::getXmlElementValue($result, "lat"); |
| 33 | + |
| 34 | + // In case one of the values is not found, return false |
| 35 | + if (!$lon || !$lat) return false; |
| 36 | + |
| 37 | + return array( |
| 38 | + 'lat' => $lat, |
| 39 | + 'lon' => $lon |
| 40 | + ); |
| 41 | + } |
| 42 | + |
43 | 43 | } |
\ No newline at end of file |
Property changes on: trunk/extensions/Maps/Geocoders/Maps_GeonamesGeocoder.php |
___________________________________________________________________ |
Name: svn:eol-style |
44 | 44 | + native |
Property changes on: trunk/extensions/CentralNotice/CentralNotice.pg.psql |
___________________________________________________________________ |
Name: svn:eol-style |
45 | 45 | + native |
Property changes on: trunk/extensions/Translate/groups/Okawix/Okawix-dtd.yml |
___________________________________________________________________ |
Name: svn:eol-style |
46 | 46 | + native |
Property changes on: trunk/extensions/Translate/groups/Okawix/Okawix-properties.yml |
___________________________________________________________________ |
Name: svn:eol-style |
47 | 47 | + native |
Property changes on: trunk/extensions/Translate/groups/Okawix/README |
___________________________________________________________________ |
Name: svn:eol-style |
48 | 48 | + native |