I am trying to gelocate a location
If i use this one $response = wp_remote_get( $url );
I am getting the (Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-account", "results" : [], "status" : "OVER_QUERY_LIMIT" }
) error from google But if i am trying to use the hard coded link it works:
$response2 = wp_remote_get( "https://maps.googleapis.com/maps/api/geocode/json?address=long%2Bisland%2Bcity%2Bny%2B11103%2Busa&key=AIzaSyBdjwjKwkVOkZZDftw4VWMenxE5bnUeC2E®ion=US&language=EN&sansor=false");
Any ideea why ?