Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用MVC5在索引页面中显示google地图_C#_Google Maps - Fatal编程技术网

C# 使用MVC5在索引页面中显示google地图

C# 使用MVC5在索引页面中显示google地图,c#,google-maps,C#,Google Maps,我有这个代码,我希望我正在搜索的位置显示在我的索引页中,而不是在线 <form action="http://maps.google.com/maps" method="get" target="_blank"> <input type="text" name="saddr" placeholder="Search your Place" /> <input type="hidden" name="daddr" value="Durban,eThek

我有这个代码,我希望我正在搜索的位置显示在我的索引页中,而不是在线

<form action="http://maps.google.com/maps" method="get" target="_blank">
    <input type="text" name="saddr" placeholder="Search your Place" />
    <input type="hidden" name="daddr" value="Durban,eThekwini municipality" />
    <input type="submit" class="styled-button-9" value="GET DIRECTION HERE" />
</form>

使用google places API。登录api控制台,创建密钥并放入api


请参阅谁是谷歌人:o我希望它应该是谷歌地图!!很抱歉,你能详细说明你的问题吗?你必须使用谷歌地图iframe嵌入功能。我不确定是否有API调用来构建嵌入代码,但你可以通过谷歌地图底部的gear找到嵌入代码(作为HTML)。这是一个嵌入谷歌地图,我希望在搜索某个地方时,它会显示在索引页中,并将我在线重定向到谷歌地图的站点。我希望我很清楚,我会非常感谢你的帮助。