我使用martinjack / laravel-yandex-geocoding与laravel开发了一个Web项目。
如何使用yandex地图路线获取两个城市之间的公里数?
我只能使用这样的查询:
use YaGeo;
$data = YaGeo::setQuery('Turkey, istanbul')->load();
$data = $data->getResponse()->getData();
响应结果:
Array
(
[Address] => Turkey, Istanbul
[Kind] => locality
[CountryNameCode] => TR
[CountryName] => Turkey
[AdministrativeAreaName] => İstanbul
[LocalityName] => Istanbul
[Longitude] => 28.96747
[Latitude] => 41.008857
)