問題タブ [google-photos]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - Google Places API を使用して場所の全体像を把握しますか?
私のアプリケーション android (私はプロジェクト用に構築しています) では、Google Places API Place Autocomplete を使用します。その後、https ://developers.google.com/places/web-service/photos を使用して API で検索された場所の詳細を取得し、json で次のようなファイルを取得します。
JSON には、場所の写真を取得するために使用する photo_reference がある時点であることがわかります。しかし、写真はユーザーが撮影したものであるため、その場所ではなく、その場所の近くに何かが写っているため、良い写真とは言えないものもあります。たとえば、セントラル パークの場合、次の写真を取得します: https://lh3.googleusercontent.com/p/AF1QipNpSABT4bcgrx10w17byekNUkUrsOrGXh-Pcqz2=s1600-w400
https://lh3.googleusercontent.com/p/AF1QipNb9zc-431dH3G4x_UblW5jpRUWcZe4Bs_fJZPo=s1600-w400
2 つ目だけは良いが、最初のものはそうではない場合
それで、どうすればこれを解決できますか?おそらくGoogle自身が作成した良い画像を取得する方法はありますか? ありがとう!