問題タブ [google-places-api]
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.
iphone - Google Places API に現在地 (経度と緯度) を埋め込む
Google Places API を iOS アプリに統合しようとしています。私はこのブログを参照しています: http://iphonebyradix.blogspot.com/2011/07/working-with-google-places-api.html
現在、iPhone の現在の位置を調べています。取得した経度と緯度を、"location=34.0522222,-118.2427778" の代わりに次の URL に埋め込むにはどうすればよいですか。
コードで指定されたハードコードされた場所の近くではなく、現在の場所の近くのレストランの場所を取得するようにします。
ありがとうございます。
android - google Places APIを使用して、「テキサス州オースティン近郊のピザ」を検索します
とを使用してシンプルなAndroidアプリを作成してEditText
いMapView
ます。「テキサス州オースティン近郊のピザ」と入力して、テキサス州オースティンのピザ店に地図をズームできるようにしたいと思います。GoogleAPIJavaクライアントを使用してGooglePlacesAPIにリクエストを送信し、結果を地図上のオーバーレイとして入力しています。これは、Google Places APIで検索リクエストの一部として経度と緯度を指定する必要があることを除いて、ある程度うまく機能しています。
このAPIは、ユーザーの現在地の近くの場所を見つけるのに理想的です。ただし、ニューヨークにいて、テキサス州オースティンの近くのピザ店を見たい場合は、最初に検索文字列を解析し、文字列の場所に見える部分を経度と緯度にマッピングしてから、クエリを実行する必要があります。 GooglePlacesAPIに対して。
それを行うためのより良い方法がないと確信していれば、私はこれを行ってもかまいません。ある?グーグルがすでにひびを入れているのはナッツのようだ。基本的に、私が探しているのは、提供されたキーワード( "pizza near austin、tx")から緯度と経度を決定するGooglePlacesAPIです。
google-places-api - Google Places API の「センサー」パラメータとは何ですか?
Google Places APIリクエストにはパラメータsensor
がありますか? このパラメーターは結果にどのように影響しますか?
android - ユーザーに最も近い場所に基づいてGooglePlacesAPIデータを並べ替える
私は現在、ユーザーの現在の場所から最寄りの銀行やATMを取得するためのアプリを開発しています。Google Places APIからすべての詳細を取得できましたが、ユーザーに最も近い順に並べ替えたいと思います。今、それは私にランダムを与えています。つまり、私が得ている最初の結果はユーザーに最も近いものではありません。最初のデータなどは、ユーザーの現在地からの距離に基づいて並べ替えてほしい。
誰かがアイデアを持っているなら、親切に私を助けてください。
ありがとう!!!
google-maps - Google Places APIを使用して特定のタイプの場所を検索するにはどうすればよいですか?
私はグーグルプレイスAPIを使用して(gas_station、cafes、shopping_mallsなど)のような特定のタイプを検索していますここに私が使用しているリンクがありますhttps://maps.googleapis.com/maps/api/place/search/json?location=41.104805,29.024291&radius=50000&types=gas_station&sensor=false&key=AIzaSyAhVKOOLN1lx6iKKnbXMT82W1cKG7O8cDY
だからここで私は私の場所の近くにあるすべてのガソリンスタンドを検索する必要があるので、ここで私は「
しかし、私の場所にはいくつかのガソリンスタンドがあります(私はグーグルマップを検索します)ので、これらの結果をどのように得ることができますか?
よろしくお願いします。
php - Google Places API と PHP/cURL でホスト エラーに接続できませんでした
PHP と cURL を使用して Google Places API からデータを取得しようとしていますが、cURL で「ホストに接続できませんでした」というエラーが表示されます。Google プレイスのリクエスト URL をブラウザに貼り付けると、問題なく動作します。file_get_contents も機能しませんでした。これが私のコードです:
私がリクエストしている URL はhttps://maps.googleapis.com/maps/api/place/search/json?key=xxx&location=27.916766641249062,-82.08984375&radius=50000&sensor=true&types=bar%7Cnight_clubです。セキュリティ上の理由から API キーを削除しました。
javascript - Google Places JavaScript API v3、API キーをリクエストに追加するにはどうすればよいですか?
私は Google Maps JavaScript API(v3) を使用する Web アプリケーションを持っており、JavaScript バージョンを使用して Places API にもアクセスしています。
Places API ドキュメントでは、HTTPS リクエストを使用する場合、Places API キー (Google API コンソールから取得) を追加する必要があると記載されています。ドキュメントには、クレジット カードで身元を確認する必要があるとも書かれています。そうしないと、1 日 1000 件のリクエストに制限されます。認証が完了すると、1 日あたり 100,000 件のリクエストが許可されます。
ただし、 google.maps.places.PlacesService.search() メソッドに渡す JavaScript オブジェクトに API キーを追加する方法を説明するドキュメントはありません...
私のクライアントは、この 1 日の制限に非常に関心を持っています。このアプリは、Places API が 1 日に 1000 回以上 ping される可能性が高い大規模な見本市の一部となるキオスクであるためです...
誰でもこれについてアドバイスできますか?そこにキーを追加できるように、HTTP 要求メソッドを使用するようにコードを作り直す必要がありますか? それとも、Google Maps JavaScript API の初期ロードにキーを追加することは可能でしょうか?
前もって感謝します、
文法。
geolocation - geo-location taxonomy of public / commercial location types? (for mapping from postal addresses)
Is there a standard or widely-used taxonomy in the market-research, advertising, or retail industry to classify public or commercial locations? We want to map from the postal address of a public or commercial location (e.g. school, hospital, factory, office park, etc.) into a taxonomy of locations (e.g. "schools", "hospitals", etc.). Instead of inventing our own taxonomy, we'd like to use an exisitng one if possible.
Doing the address->taxonomy mapping is a related but separate problem. For now, we're just looking for a taxonomy and we're assuming we're going to do the mapping ourselves, although if a great commercial geo-location mapping service uses a particular taxonomy, we'd probably favor that one!
Here's more details about our use case:
Our customers operate small food stores inside public or commercial locations like office parks, schools, hospitals, airports, etc. We provide algorithmically-driven merchandising recommendations, meaning we help retailers select which products to sell in their stores and how much space to devote to each product.
We want to use location type in our algorithms, because the products that sell best in stores in hospitals, for example, are different products from those that sell well in high schools or factories. We know the postal address of every location. Most of our locations are in the US or Canada, so a North-America-only solution is OK although not ideal.
We're hoping a taxonomy would look something like the list below:
If there are several standards in use, then is there one tied to widely-used, affordable service(s) for mapping US postal addresses into the taxonomy?
Here's a few options I found so far, although I don't know how much these are used in geo-located market research:
- NAICS, GICS, and other industry classification schemes: not exactly what we need because they focuses on the type of business, not necessarily a place. Places like stadiums are tough to model with these kinds of taxonomies.
- Google Places: The taxonomy meets our needs pretty well. But we can't use Google's service (no private, commercial use allowed) and a quick test showed that Google only had entries half our locations. So it's not clear that using Google's taxonomy makes sense, if there's better industry support for a different one.
iphone - Google Places API リクエストの応答で REQUEST_DENIED (sensor=true)
Google Places API を使用して、現在地周辺の場所を取得しようとしています。
以下は、場所検索の URL をヒットするためのコードです。
これにより、JSON 形式で次の応答が得られます。
Google Places API を検索すると、「REQUEST_DENIED」の一般的な原因はセンサーパラメーターの値が正しくないことです。しかし、私の場合、それも正しいと提供しています。
どこが間違っているのでしょうか??
繰り返しますが、私が使用している APIKey は、アプリが Android、iPhone、および BlackBerry で開発されるのに一般的です。それは有効ですか?または、別の APIKey (iPhone アプリ固有) が必要ですか? もう 1 つの質問は、3 つのプラットフォームすべてで同じキーを使用できますか??
jquery - google.maps.places.Autocomplete がファンシーボックス内で機能しない
google.maps.places.Autocomplete が機能していないにもかかわらず、API 呼び出しが発生し、入力中にバックグラウンドで結果が返されていることがわかる場合は、こちらで解決策を確認してください。