Nischay Saandil Nischay Saandil - 17 days ago 14
Android Question

{ "error_message" : "This API project was not found. This API project may have been deleted.", "predictions" : [], "status" : "REQUEST_DENIED"}

{
"error_message" : "This API project was not found. This API project may have been deleted.",
"predictions" : [],
"status" : "REQUEST_DENIED"
}


I'm facing these issues since yesterday. It was working fine before. Can anyone help me out?

Answer

Go https://code.google.com/apis/console login with your id, Create an application put all detail and generate API Key and put your API key in below code
// String key = "Put your API key here ";

private String getAutoCompleteUrl(String place){

        // Obtain browser key from https://code.google.com/apis/console
        String key = "Put your API key here "; here you update your key
    // 

        // place to be be searched
        String input = "input="+place;

        // place type to be searched
        String types = "types=geocode";

        // Sensor enabled
        String sensor = "sensor=false";

        // Building the parameters to the web service
        String parameters = input+"&"+types+"&"+sensor+"&"+key;

        // Output format
        String output = "json";

        // Building the url to the web service
        String url = "https://maps.googleapis.com/maps/api/place/autocomplete/"+output+"?"+parameters;

        return url;
    }