@@ 39-47 (lines=9) @@ | ||
36 | * |
|
37 | * @return array |
|
38 | */ |
|
39 | public function loadRegion($region) |
|
40 | { |
|
41 | return json_decode( |
|
42 | file_get_contents( |
|
43 | $this->path.DIRECTORY_SEPARATOR.sprintf(self::REGION_FILE, $region) |
|
44 | ), |
|
45 | true |
|
46 | ); |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param string $region |
|
@@ 54-62 (lines=9) @@ | ||
51 | * |
|
52 | * @return array |
|
53 | */ |
|
54 | public function loadRegionPolygon($region) |
|
55 | { |
|
56 | return json_decode( |
|
57 | file_get_contents( |
|
58 | $this->path.DIRECTORY_SEPARATOR.sprintf(self::REGION_POLYGON_FILE, $region) |
|
59 | ), |
|
60 | true |
|
61 | ); |
|
62 | } |
|
63 | } |
|
64 |