获取用于在Android Studio中显示商店说明的Google API密钥

时间:2018-02-08 02:26:43

标签: android google-api

我刚刚得到一些项目,我应该在谷歌获得一个商店时间(例如:开放/关闭10 AM-10PM)。我已经尝试并搜索API密钥以从谷歌获取描述但仍然不知道。任何人都可以告诉我如何获得这个?谢谢。

1 个答案:

答案 0 :(得分:0)

您可以在附近找到使用Google Api的内容:

return new ConstrainedBox(
  constraints: new BoxConstraints(
    minHeight: 5.0,
    minWidth: 5.0,
    maxHeight: 30.0,
    maxWidth: 30.0,
  ),
  child: new DecoratedBox(
    decoration: new BoxDecoration(color: Colors.red),
  ),
);

在搜索回复中,您可以获得https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&type=restaurant&keyword=cruise&key=YOUR_API_KEY

相关问题