This project aim to gain city position and its translation to a specific language by using differents free services with the same json structure. Just change options.json and start to make your requests.
Just PHP.
Property | Type | Description |
---|---|---|
name | string |
|
rModes | array |
|
rServices | array |
|
service | \stdClass |
|
services | \stdClass |
Property | Type | Description |
---|---|---|
name | string |
|
rModes | array |
|
rServices | array |
|
service | \stdClass |
|
services | \stdClass |
|
language | string |
|
translate | \Kunikida\Translate |
Property | Type | Description |
---|---|---|
name | string |
|
rModes | array |
|
rServices | array |
|
service | \stdClass |
|
services | \stdClass |
$params = new stdClass();
$geo = new \Kunikida\Geo('it');
$type = 'search';
$params->q = 'Napoli';
$result = $geo->request($type, $params);
if(count($result) > 0):
echo $result[0]->label . "\n\n";
endif;
Code licensed under the MIT License.
Do whatever you want with this code, but remember opensource projects work with the help of the community so would be really useful if any errors, updates, features or ideas were reported.