No result from google API PHP -
i want distance 1 point using google api, i'm having issues.
api link is:
http://maps.googleapis.com/maps/api/directions/json?origin=55.061744,9.429565&destination=opnæsgård,%20hørsholm,%20denmark&alternatives=true&sensor=false
if access link browser, correct distance however; when try access exact same url php script, error.
php script:
<?php print_r(file_get_contents('http://maps.googleapis.com/maps/api/directions/json?origin=55.061744,9.429565&destination=opnæsgård,%20hørsholm,%20denmark&alternatives=true&sensor=false')); ?>
output php script:
{ "routes" : [], "status" : "not_found" }
as can see, i'm getting 2 different results same url, , have no idea why.
i have tried using curl in php script without luck.
i hope can me
//mikkel
Comments
Post a Comment