use Bing search
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import sys
|
||||
import os
|
||||
import requests
|
||||
import pandas as pd
|
||||
|
||||
# Google API Key (ersetzen durch deinen Schlüssel)
|
||||
API_KEY = 'ENTER HERE'
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '_data')))
|
||||
from api_keys import GOOGLE_API_KEY
|
||||
|
||||
# Base URL für die Google Places API
|
||||
BASE_URL = "https://maps.googleapis.com/maps/api/place/nearbysearch/json"
|
||||
@@ -17,7 +19,7 @@ def search_places(query, location, radius=5000):
|
||||
:return: Liste von Orten
|
||||
"""
|
||||
params = {
|
||||
'key': API_KEY,
|
||||
'key': GOOGLE_API_KEY,
|
||||
'keyword': query,
|
||||
'location': location,
|
||||
'radius': radius
|
||||
|
Reference in New Issue
Block a user