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