问题标签 [google-local-search]

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.

0 投票
1 回答
69 浏览

gwt - 是否有一些搜索引擎 SDK 或 API 可用于本地搜索?

我的磁盘上有许多文档,我想构建一个搜索引擎来搜索它们。我知道 Google 桌面搜索或 Bing 桌面搜索可以做到这一点。但我想知道是否有一些 SDK/API 可以做到这一点,以便我可以进行一些定制。

我想要实现的是,我可以提供一个文档,本地搜索引擎将返回所有与它相似的文档。

0 投票
3 回答
1381 浏览

data-structures - 架构标记对移动应用网站有何帮助?

我想为移动应用网站实现架构标记。我阅读了 schema.org/MobileApplication,但有很多属性。我没有得到哪些属性有助于为本地搜索提供更有效的输出?

0 投票
1 回答
1223 浏览

google-maps - 如何在谷歌地图中通过电话验证本地商家?我没有看到任何字段区域可以输入我的号码?

当我转到此链接时:https://support.google.com/business/answer/2911778,有通过电话验证选项,我点击进入您的仪表板,但在仪表板中我找不到电话号码的输入字段。在这种情况下如何通过电话进行验证?

0 投票
1 回答
36 浏览

python - Google serves its homepage to urllib2 when a local search is made

When a local search is done on Google, then the user clicks on the 'More ...' link below the map, the user is then brought to a page such as this.

If the URL:

is copied out and pasted back into a browser, one arrives, as expected, at the same page. Likewise when a browser is opened with WebDriver, directly accessing the URL brings WebDriver to the same page.

When an attempt is made, however, to request the same page with urllib2, Google serves it its home page (google.com), and it means, among other things, that lxml's extraction capabilities cannot be used.

While urllib2 is not the culprit here (perhaps Google does the same with all headless requests), is there any way of getting Google to serve the desired page? A quick tests with the requests library is indicating the same issue.

0 投票
2 回答
1119 浏览

android - 在 googleMaps API 中通过查询轻松快速地获取地点

我只是在 Android 中重建我的 iOS 应用程序,到处都是可怕的事情。一个可怕的部分是地图的东西。

我需要通过查询等来获取用户位置周围的位置"park", "cafe", "bakery"。在swift中我刚刚使用了localSearchRequest.naturalLanguageQuery

有没有类似的方法在 Android 中使用 GoogleMaps API 做同样的事情?我发现的唯一方法是通过 JSON 从https://developers.google.com/places/web-service/search获取它们,我什至不确定这是否适用于 Android 应用程序。

适用于 Android 的 GooglePlaces API 仅列出某个位置周围的所有地点,而无法过滤它们或其他东西。

0 投票
1 回答
183 浏览

ios - 如何在 iOS 中使用 Google Place API 将自动完成的搜索位置结果作为 GMSPlaces 而不是 GMSAutocompletePrediction 获取?

实际上,对于我使用 Google API 的自动完成位置搜索请求,我得到了GMSAutoCompletepredictions形式的相应响应。通过预测结果,我们没有获得更多详细信息,例如坐标、格式化的详细地址等位置。

如果我们需要更多关于位置的详细信息,我们需要再向 Google plcaes API 发出一个请求,并在预测结果中提供位置 ID 值。此方法可能会增加 API 使用率并影响应用性能。

请帮助我克服这个问题。谢谢你 :)

0 投票
1 回答
237 浏览

python - 本地搜索运算符 Python 包装器 Google or-tools

有人可以给我一个示例,说明如何从 Python 包装器中访问和使用 LocalSearchOperator 子类吗?

具体来说,我正在寻找一个类似于 jobshop_heuristic.cc 的示例:

http://www.lia.disi.unibo.it/Staff/MicheleLombardi/or-tools-doc/user_manual/manual/metaheuristics/jobshop_lns.html#a-heuristic-to-solve-the-job-shop-problem

但翻译成Python。

谢谢!