ich bin ein kompletter Neuling in Programmieren und Python. Nun folgendes, ich probiere mich ein wenig mit der Places API von Google aus. ich habe folgendes geschrieben:
Code: Alles auswählen
from CredentialsGoogle import APIKey
import googlemaps
import urllib
import json
gmaps = googlemaps.Client(key = APIKey)
search = "Handwerker Berlin"
input = "input="+search
inputtype = "inputtype=textquerry"
fields = "fields=formatted_address,name,rating"
json1 = "json?"+input+"&"+inputtype+"&"+fields
find_places = "https://maps.googleapis.com/maps/api/place/findplacefromtext/"+json1+"&key="+APIKey
request = urllib.request.urlopen(find_places)
print(json.load(request))
{'candidates': [], 'status': 'INVALID_REQUEST'}
Frage ist WARUM?
Und könnt ihr mir eine gute PDF schicken wo der Umgang mit googlemaps mod und allgemein APIs erklärt wird? (Befehle, usw.)
Ich danke vielmals,
Illy