I used google maps api for selecting some points on map and find to shortest driving route.
Everythings works in localhost, but when i publish and upload it server, it doesn't work...
Why it's happen? There isn't any error. Map is coming on page but i can't see markers and directionResult doesn't load the result. Is it about authorization? I have valid account and api key etc. And i allowed referer of my domain.
Edit: I check the script with crome JS debugger. There is no response here;
directionsService.route(request, function (response, status) {
if (status == google.maps.DirectionsStatus.OK)
{
directionsDisplay.setDirections(response); }
});
status returning "" value at live server, not "OK". In localhost its working! Anybody knows whats the reason?
You can see the example of google.maps.api here; view-source:https://google-developers.appspot.com/maps/documentation/javascript/examples/directions-simple
Thanks for any help.