MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / __init__

Method __init__

bmtools/tools/google_places/api.py:11–14  ·  view source on GitHub ↗
(self, subscription_key)

Source from the content-addressed store, hash-verified

9
10class GooglePlacesAPIWrapper:
11 def __init__(self, subscription_key) -> None:
12 self.gplaces_api_key: str = subscription_key
13 self.google_map_client = googlemaps.Client(self.gplaces_api_key)
14 self.top_k_results: Optional[int] = None
15
16 def run(self, query: str) -> str:
17 """Run Places search and get k number of places that exists that match."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected