«

谷歌地图定位功能:现已登陆Gemini API平台

qimuai 发布于 阅读:6 一手编译


谷歌地图定位功能:现已登陆Gemini API平台

内容来源:https://blog.google/technology/developers/grounding-google-maps-gemini-api/

内容总结:

谷歌地图数据服务正式接入Gemini人工智能平台。谷歌公司近日宣布,其Gemini API平台已集成谷歌地图工具,开发者现可将2.5亿个地理坐标数据与AI推理能力相结合,打造具有空间感知能力的智能应用。

这项名为"基于谷歌地图的实体定位"服务,与早前推出的搜索引擎数据服务形成互补,可为涉及地理位置信息的查询提供实时数据支持。在演示案例中,当用户提出"规划旧金山一日游,要参观金门大桥、博物馆并享用晚餐"的需求时,系统能自动生成包含景点距离、营业时间等细节的完整行程。

该服务具备三大核心功能:可实现多地点智能规划的行程编排系统;基于指定位置推送个性化推荐的定位服务;以及通过分析用户评论等数据解答具体场所细节的问答能力。开发者还可同时启用搜索引擎数据服务,使AI既能获取地图提供的营业时间等结构化数据,又能整合网络新闻等动态信息。

目前该项服务已全面开放,支持最新Gemini系列模型。开发者可通过官方文档和演示程序快速入门,在旅游、房地产、零售物流等领域构建更智能的定位服务应用。

中文翻译:

谷歌地图数据对接功能正式上线Gemini API平台。今日我们正式在Gemini API中推出谷歌地图工具,开发者可将应用程序与地图数据深度集成。通过连接Gemini的推理能力与覆盖超2.5亿地点的数据库,开发者将能打造新一代具备地理空间感知能力的智能产品。与谷歌搜索数据对接功能类似,当查询涉及位置信息时,谷歌地图数据对接可为模型提供丰富且实时的地理数据。

您可通过下方Google AI Studio演示视频直观了解该功能,也可直接访问平台体验应用,并通过重组代码添加更多工具与界面元素。

快速入门
只需在Gemini API请求中启用谷歌地图数据对接功能即可开始使用。
以下是通过Python SDK调用的示例:
为便于可视化地图返回结果,您还可使用上下文令牌获取交互组件,并选择性地将其嵌入应用界面。用户将获得包含相关照片、评价等信息的熟悉体验。
下图展示了该工具返回的谷歌地图组件示例。

通过数据对接提升模型响应质量
开发者可借助此功能在旅游、房地产、零售和物流领域打造更直观高效的服务。当检测到查询包含地理语境时,模型会自动调用谷歌地图数据生成精准回应。系统将综合地点信息及用户评价等相关内容生成答复,您还可通过指定经纬度坐标实现区域精准定位。

典型应用场景包括:

组合使用地图与搜索数据对接
为打造功能最强大、语境感知最敏锐的应用程序,您可在同一请求中同时启用谷歌地图与谷歌搜索数据对接功能。

立即开始构建
谷歌地图数据对接功能现已全面开放。该工具支持我们最新模型,您可根据应用需求灵活平衡性能与成本(详见工具定价)。
您现在即可着手开发:查阅技术文档了解更多信息,或在Google AI Studio中重组演示应用。您还可通过Gemini API代码示例库探索谷歌搜索与地图数据对接的更多应用方案。

英文来源:

Grounding with Google Maps: Now available in the Gemini API
Today we’re launching the Google Maps tool in the Gemini API, allowing developers to ground their applications in Maps data. This allows developers to connect Gemini's reasoning capabilities with data from more than 250 million places, allowing a new class of powerful, geospatial-aware AI products. Just like Grounding with Google Search, Grounding with Google Maps provides rich, up-to-date data to the model for any query where location information is helpful.
See the feature in action in the demo video below in Google AI Studio. You can check out the app in Google AI Studio and remix it to add additional tools, UI elements and more.
Get started
To get started, enable the Grounding with Google Maps tool in your Gemini API request.
Here is an example using the Python SDK:
To make it easier to visualize grounded Maps results, you can also use the returned context token to retrieve an interactive widget that you may optionally render in your application UI, giving users a familiar experience complete with relevant photos, reviews and other details.
Here's an example of the Google Maps widget returned by the tool.
Improve model responses with grounding data
Developers can use Grounding with Google Maps to create more intuitive and helpful experiences across travel, real estate, retail and logistics. The model automatically detects when a query has geographical context and uses Google Maps data to provide a grounded response. Google Maps uses data from places, and other related content like user reviews, as sources to help generate the response. You can provide latitude and longitude coordinates to localize search results to specific geographic locations.
Here are a few ways you can use this:

谷歌新消息

文章目录


    扫描二维码,在手机上阅读