标签: bing

如何从应用程序启动wp7内置Bing搜索

当用户点击我的应用程序中的按钮时,我希望能够从基于silverlight的wp7应用程序调用Bing内置搜索应用程序.这可能吗?

silverlight search bing windows-phone-7

2
推荐指数
1
解决办法
234
查看次数

元素':item'包含映射到名称'http:// ...:Location'的类型的数据.反序列化器不知道任何映射到thi的类型

我正在编写代码来使用Bing地理编码服务(Bing Maps),我成功地通过wcf提取JSON数据,遗憾的是我似乎无法映射返回的数据.

我根据需要创建了所有适当的DataContracts并用必需的成员填充它们,但是当我开始进入孩子时,我收到以下错误:

元素':item'包含映射到名称'http://schemas.microsoft.com/search/local/ws/rest/v1:Location'的类型的数据.反序列化器不知道映射到此名称的任何类型.考虑使用DataContractResolver或将与"Location"对应的类型添加到已知类型列表中 - 例如,通过使用KnownTypeAttribute属性或将其添加到传递给DataContractSerializer的已知类型列表中.

所以我注释掉了"children"对象,并且当它试图读取JSON对象的"Location"部分时基本上能够辨别它正在爆炸

在下面的代码中,它涉及到这里的部分:

               "__type":"Location:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1",
Run Code Online (Sandbox Code Playgroud)

它的价值,网址是坏的,但我不在乎.我不想使用那种类型(显然可以映射回微软网站的架构).有没有办法告诉WCF忽略该链接?它不像能做到的.

Bing返回了什么

{
   "authenticationResultCode":"ValidCredentials",
   "brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png",
   "copyright":"Copyright © 2010 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.",
   "resourceSets":[
      {
         "estimatedTotal":1,
         "resources":[
            {
               "__type":"Location:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1",
               "bbox":[
                  47.635884282429323,
                  -122.13737419709076,
                  47.643609717570676,
                  -122.12208780290925
               ],
               "name":"1 Microsoft Way, Redmond, WA 98052-8300",
               "point":{
                  "type":"Point",
                  "coordinates":[
                     47.639747,
                     -122.129731
                  ]
               },
               "address":{ …
Run Code Online (Sandbox Code Playgroud)

wcf json bing

2
推荐指数
1
解决办法
3230
查看次数

谷歌地图api与Bing Maps api 2012

我想在网页上开发一个地图api,但我不确定是否应该使用Google或Bing.我已经在没有考虑Bing的情况下与谷歌做过一些工作,而且在将kml文件加载到地图上时遇到了一些限制.它们也可能与Bing一起存在.我看过其他帖子,但它们太具体或过时了:

Bing和Google地图api的优点和缺点是什么?例如:下载大小,用户友好性,免费使用的功能数量,可供下载的地图数量,搜索次数等.您对这两种方式的体验有哪些?

comparison bing bing-maps google-maps-api-3

2
推荐指数
1
解决办法
5916
查看次数

如何在C#中使用System.Data.Services.Client?

我试图Bing Search API在我的C#程序中使用它.当我尝试

using System.Data.Services.Client; 在我的程序中,它给我以下错误:

The type or namespace name 'Services' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

我在Windows 7 64位版本中使用Microsoft Visual Studio 2010.我是编程的新手,不知道如何设置汇编引用.我可以告诉我如何解决这个问题?

c# bing bing-api

2
推荐指数
1
解决办法
3501
查看次数

参考错误:未定义 UET

I'm struggling to understand why this javascript error keeps popping up on my website and I can't reproduce it. I've followed the bing documentation to install their tracking pixel so I have this in my header :

  <script>
    (function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){
      var o={ti:"xxxxxxxx"};o.q=w[u],w[u]=new UET(o),
              w[u].push("pageLoad")},n=d.createElement(t),n.src=r, n.async=1,
            n.onload=n.onreadystatechange=function(){var s=this.readyState;
              s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},
            i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})
    (window,document,"script","//bat.bing.com/bat.js","uetq");
  </script>
Run Code Online (Sandbox Code Playgroud)

However in some browsers, the UET variable in this code, which is loaded by the url given as the r variable, seems to not be defined while it's only …

javascript bing tracking-pixel

2
推荐指数
2
解决办法
1212
查看次数

在C#中使用Bing API

我们如何在C#中使用Bing API?我必须将查询传递给Bing API然后获取结果.

.net c# bing bing-api

1
推荐指数
1
解决办法
2908
查看次数

如何使用bing map控件从GestureEventArgs获取地理坐标?

我有WP7应用程序并使用Hold事件.是否有可能让地理坐标得到一个我握在手指上的点?

谢谢

map geolocation bing windows-phone-7

1
推荐指数
1
解决办法
1818
查看次数

在Bing WPF控件中更改地图模式

这是我的XAML代码:

<s:SurfaceWindow x:Class="map_test.SurfaceWindow1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="http://schemas.microsoft.com/surface/2008"
xmlns:m="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="1080" Width="1920" WindowStartupLocation="CenterScreen">
<Grid>
    <m:Map x:Name="NotreDameMap" CredentialsProvider="AmNh-jzPEmrdpc2T2wBxEjyB0fvSimavosz4B4_IPEAY4RDE-r7L2rHa439uEzlz" Mode="AerialWithLabels" Center="41.702380,-86.234168" ZoomLevel="16" >
        <Canvas Width="175.198" Height="85" 
          m:MapLayer.Position="41.702380,-86.234168" 
          m:MapLayer.PositionOrigin="BottomCenter" Opacity="0.75">
            <!-- Layer 1/<Group>/<Path> -->
            <Path StrokeThickness="0.2" Stroke="#ffec008b" StrokeMiterLimit="1.0" Data="F1 M 122.944,144.000"/>

            <!-- Layer 1/<Group>/<Path> -->
            <Path StrokeThickness="0.2" Stroke="#ffec008b" StrokeMiterLimit="1.0" Data="F1 M 65.081,47.477"/>


            <!-- Layer 1/<Group>/<Group>/<Compound Path> -->
            <Path Fill="#ff0e223e" Data="F1 M 159.484,130.991 L 158.570,130.991 L 158.570,128.309 C 158.791,128.277 159.073,128.247 159.484,128.247 C 160.901,128.247 161.408,128.941 161.408,129.636 C 161.408,130.609 160.523,130.991 159.484,130.991 Z M 161.187,131.494 L 161.187,131.432 …
Run Code Online (Sandbox Code Playgroud)

wpf map bing

1
推荐指数
1
解决办法
4499
查看次数

嵌入 bing 地图 - 图钉

我正在尝试将 bing 地图嵌入网页并且它可以工作,但我想在网页上的嵌入地图中显示图钉。正如我所见,这是不可能的。有谁知道如何做到这一点?

<div id="mapviewer"><iframe id="map" scrolling="no" width="500" height="400" frameborder="0" src="http://www.bing.com/maps/embed/?v=2&amp;cp=45.810280~15.957222&amp;lvl=4&amp;dir=0&amp;sty=r&amp;cid=AF2FECA12C1AA81D!196&amp;form=LMLTEW&amp;emid=8841ff8b-025d-e5a7-e37f-39b4d31b3b93"></iframe><div id="LME_maplinks" style="line-height:20px;"><a id="LME_largerMap" href="http://www.bing.com/maps/?v=2&amp;cp=45.810280~15.957222&amp;lvl=4&amp;dir=0&amp;sty=r&amp;cid=AF2FECA12C1AA81D!196&amp;form=LMLTEW" target="_blank" style="margin:0 7px">View Larger Map</a><a id="LME_directions" href="http://www.bing.com/maps/?v=2&amp;cp=45.810280~15.957222&amp;lvl=4&amp;dir=0&amp;sty=r&amp;cid=AF2FECA12C1AA81D!196&amp;form=LMLTEW&amp;rtp=%7Epos.45.810279846_15.957221984000004_" target="_blank" style="margin:0 7px">Driving Directions</a></div></div>
Run Code Online (Sandbox Code Playgroud)

bing bing-maps

1
推荐指数
1
解决办法
1万
查看次数

必应,雅虎使用 url 在单页上获得更多结果

我如何从 bing 和 yahoo 搜索引擎中获取更多结果。(使用网址)

对于 Google,我们传递“num”参数,即 - https://www.google.com/#num=30&q=test(给出 30 res)

那么什么是传递给 bing 和 yahoo 以获得更多结果的参数。

有人有想法吗?

yahoo search-engine bing yahoo-search

1
推荐指数
1
解决办法
3569
查看次数