View
216
Download
0
Category
Preview:
Citation preview
Geoffrey InnisBing Maps Technical SpecialistSession 2-654
Engaging Windows Store Apps with Bing
2-654
Intro to Bing APIsFour integration scenarios for Windows 8.1Top code resourcesWhat’s newQ&A
Agenda slide
Bing Toolset overview
Ads APIManage ads on Bing and Yahoo
Translator Your window to the world
App ProducerFor news publishers
Webmaster APIAutomated access to your data
Maps Building with Bing Maps
Search APISearch by Microsoft
Ads SDKMonetize your ideas
SpeechInteracting with voice
Synonyms APIAlternate entity names
Bing feature availability by platform
Maps Speech Search Translate
Synonym
Windows Phone 8
Windows 8.1 (XAML)
Windows 8.1 (JavaScript)
Web Service
= Via Web browser
= Via Web service
= Availability
Bing Maps overview
APIs• JavaScript• XAML• REST• SOAP• More
Rich maps and imagery• Roads• Aerial• Birds eye• Venue maps
Location-based services• Geocoding• Reverse geocoding• Routing
Powerful visualization• Heat maps• Thematic maps• Custom symbology
Geospatial data• Points of interest• Elevation• Traffic
Spatial data hosting• Point/line/poly shapes• Spatial querying• Non-spatial filtering
©2014 Microsoft Corporation Pictometry Bird’s Eye © 2012 Pictometry International Corp Image Courtesy of 3Di
Bing Speech overview
Speech recognition (Windows Phone 8)• 12+ languages
supported• Custom array and
SRGS grammars
Speech recognition (Windows 8, Windows 8.1)• Supports 6+
languages• Transcribe speech
into text
Speech synthesis(Windows 8.1)• 12+ languages• Male or female• Support for
SSML standard
Voice commands(Windows Phone 8)• Open app• Deep link into app• Navigate
Speech synthesis(Windows Phone 8)• Plain text and
SSML support• Support for external
SSML docs
Bing Translator overview
Toolset includes• Translate strings or
arrays• Return audio• Detect languages• Add translations
Control for Windows 8 and Windows 8.1• No UI element needed
Supports 40+ languages• Linguistic context
used to interpret text• Get supported
languages
Translator widget for websites available
Web Services available include• REST• AJAX• SOAP
Bing Search overview
Individual or composite service operations
Available via web service• REST interface• JSON/XML responses
Six source types• Web• Images• Videos• News• Related searches• Spelling suggestions
Filters for• Image size, aspect,
etc.• News category,
location• Video duration,
resolution• Web filetypes
Search inputs• Query term(s)• Location and market• More
Speech-powered maps (with demo)
Bing Speech+ Synthesis + Bing Maps + Geolocation API Speak place name to navigate map or obtain directions from current location
Place names, driving instructions, and feedback spoken to user
Application walkthrough and full code: http://aka.ms/bingspeechmaps
©2014 Microsoft Corporation © 2013 Nokia
Voice translation
Code download: http://code.Msdn.Microsoft.Com/voice-translator-sample-59be8627
Bing Speech + Synthesis + Bing Translator
User speaks in one language =>App says phrase in anotherIncludes code to manage language support overlap
Map-driven search
Code download: http://code.Msdn.Microsoft.Com/map-driven-search-in-28278e3d
Bing Search + Bing Maps
• News• Images• Video• Web
Intuitive map-based UI accesses geo-relevant content
Localizing custom map content
Application Walkthrough: http://aka.ms/bingmapstranslate
EN FR
©2014 Microsoft Corporation © 2013 Nokia ©2014 Microsoft Corporation © 2013 Nokia
Bing Translator + Bing Maps
Localize custom mapping content in a variety of languages
Augment the in-built localization of map labels, directions, and place names
Top code resources
Top Maps code for Windows 8 apps (XAML)
http://code.msdn.microsoft.com/Draggable-Pushpin-in-Bing-939eaaa5
Draggable pushpins
http://code.msdn.microsoft.com/Clustering-Pushpins-in-95fb729a
Clustering pushpins
http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/06/17/infoboxes-for-native-windows-store-apps.aspx
Infoboxes
http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/11/11/complex-polygons-in-bing-maps.aspx
Complex polygons
http://code.msdn.microsoft.com/Bing-Maps-C-GPX-Route-c945656b
GPX Route Viewer
http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/06/24/augmented-reality-with-bing-maps-in-a-windows-store-app.aspx
Augmented reality
http://code.msdn.microsoft.com/vstudio/Sharing-maps-using-the-7866f512
Share maps with Charm
©2014 Microsoft Corporation © 2013 Nokia ©2014 Microsoft Corporation © 2013 Nokia
©2014 Microsoft Corporation © 2013 Nokia
Top Maps code for Windows 8 apps (JS)
http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/01/31/venues-maps-in-windows-store-apps-javascript.aspx
Venue maps
http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/06/25/retrieving-boundaries-from-the-bing-spatial-data-services-preview.aspx
GeoData API integration
http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/07/29/heat-maps-in-windows-store-apps-javascript.aspx
Heat maps of POI
©2014 Microsoft Corporation © 2013 Nokia
©2014 Microsoft Corporation © 2013 Nokia
©2014 Microsoft Corporation © 2013 Nokia Available Exclusively by Digital Globe
Top Speech code for Windows 8 apps
http://code.msdn.microsoft.com/Bing-Speech-Recognition-210c8978
Web Search (C#)
http://code.msdn.microsoft.com/Speech-Recognition-19c452b4
Custom UI
(JS + C#)
http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/11/20/how-to-extend-your-app-with-talking-maps.aspx
Speech + Maps (JS)
©2014 Microsoft Corporation © 2013 Nokia
http://aka.ms/bingspeechmaps
Speech + Maps (XAML)
Top Search code for Windows 8 apps
http://go.microsoft.com/fwlink/?LinkID=272626&clcid=0x409
Quick Start code samples
http://msdn.microsoft.com/en-us/library/dd251066.aspx
SourceType samples (C#, VB)
http://go.microsoft.com/fwlink/?LinkID=272627&clcid=0x409
Schema guide
http://code.msdn.microsoft.com/Map-Driven-Search-in-28278e3d
Map-driven search (C#)
©2014 Microsoft Corporation © 2013 Nokia
Top Translator code for Windows 8 apps
http://code.msdn.microsoft.com/Bing-Translator-Control-410cbc43
Control demo sample (C#, JS)
http://code.msdn.microsoft.com/Voice-Translator-Sample-59be8627
Voice translator sample (C#, JS)
http://blogs.msdn.com/b/translation/p/windows8walkthrough.aspx
Tweet translator (C#)
http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/08/22/localizing-custom-mapping-data-with-bing-translator.aspx
Localizing map data (C#)
eBook: Location Intelligence for Windows 8 appsAvailable for free download Apps
• Drawing shapes• Augmented
reality• Compass control• Cross-platform
app development
Tools• Prerequisites• Sensors• Javascript SDK• XAML SDK• REST services• Spatial data
ingestion
In-depth review of available tools, as well as application scenarios
Book download: http://rbrundritt.Wordpress.Com/my-book/
©2014 Microsoft Corporation © 2013 Nokia
SpatialToolbox for Windows Store appsAvailable now on CodePlex
Import spatial data• WellKnownText• WellKnownBina
ry• ESRI shapefiles• GeoRSS• GPX• KML• KMZ• GeoJSON
Author: Ricky BrundrittBing Maps TSP EMEA
Library for XAML apps+ Component for JavaScript
Clustering• Point based• Grid based• Heat mapping
Utilities• Calc bearing• Calc
destination coordinate
• Calc geodesic• Calc midpoint• Convert
distance• Decimal to
DMS• Generate circle• Generate
regular poly• Haversine
distance• ToDegrees• ToRadians• Vertex
reduction
Import Bing data• GeoData API• Navteq POI• REST geocoder• REST
directions
Codeplex project: http://mapstoolbox.Codeplex.Com/
©2014 Microsoft Corporation © 2013 Nokia ©2014 Microsoft Corporation © 2013 Nokia
New for Maps: storing geometries
Augmented storage limits for data sources
• Point• LineString• Polygon• MultiPolygon
Display via well-known text
Host in SDS data sources for querying and display
©2014 Microsoft Corporation © 2013 Nokia
Use cases• Find
properties in polygon
• Find sales territory for given address
• Find counties in hurricane path
• More
New for Maps: advanced spatial queriesQuery using intersection of geometries
Query against custom points or geometries in SDS data source
Filter based on administrative boundaries• County• Neighborhood• City or zipPass
geometry as parameter to query API
©2014 Microsoft Corporation © 2013 Nokia
Dev tool: Bing Code Search add-in for C#Available now in Visual Studio GalleryCode
sources• MSDN• StackOverflow• Dotnetperls• CSharp411
Code snippet searching• Triggered from
IntelliSense• Snippet
inserted into your code
Extension download: http://aka.Ms/bingcodesearch
Leverages Bing Search to identify relevant snippets
Example: “read a file line-by-line”
Accessing and provisioning Bing APIs
Status Provision via Authentication Support Free usage Paid
licensing
Maps Available Bing Maps Portal Bing Maps KeyDedicated team* + Forum
50k trx/day* Dedicated team
Speech AvailableAzure Marketplace
Azure MarketClient ID/Secret
Bing Dev Forum500k trx/month
None
Search Available Azure Marketplace
Azure Market Account Key
Marketplace Forum
5k trx/monthAzure Marketplace
Translate
Available Azure Marketplace
Azure MarketClient ID/Secret
Dedicated Forum
2M chars/month
Azure Marketplace
Synonym
Available in CTP
Azure Marketplace
Azure Market Account Key
Bing Dev Forum 5k trx/month None
Q A Contact alias: geinnis
Your Feedback is Important
Fill out an evaluation of this session and help shape future events.
Scan the QR code to evaluate this session on your mobile device.
You’ll also be entered into a daily prize drawing!
© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Bing Maps version 7 Modules (JavaScript)
• Nine contributors
• 20 modules• 6000+
downloads• 1M+ users a
day
http://bingmapsv7modules.codeplex.com
Drawing tools
©2014 Microsoft Corporation © 2013 Nokia
Clustering
©2014 Microsoft Corporation Image Courtesy of NASAEarthstar Geographics SIO © 2013 Nokia
Heat maps
©2014 Microsoft CorporationEarthstar Geographics SIO
Recommended