SlideShare uma empresa Scribd logo
1 de 28
Baixar para ler offline
HERE LAUNCHERS FOR
WINDOWS PHONE
Jukka Silvennoinen
Chief Engineer
LUMIA APP LABS #16
Nokia Internal Use Only
CONTENT.
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• HERE applications
• HERE Launchers API
• URI Scheme for HERE apps
• Other APIs for launching apps
Nokia Internal Use Only
HERE
APPLICATIONS
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
HERE APPLICATIONS
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
HERE
Maps
HERE
Drive
WP8
HERE
Transit
HERE
City Lens
Nokia Internal Use Only
5
Your compass to discovery
HERE Maps shows you the best
of where you are and makes it
easier than ever to get where
you’re going.
Find what you are looking for,
discover the hidden gems
nearby, and get there any way
you like.
HERE MAPS
Nokia Internal Use Only
HERE Drive and HERE Drive+ brings drivers the best turn-by-turn
voice guided navigation experience to reach any destination
safely and easily—even without a data connection for a true
offline experience.
We give drivers options that are based on what’s important in
their daily lives. The best route between point A and point B is
more than just a highlighted line, it’s a personal path.
We inform drivers about the situation on the road before they get
behind the wheel. There’s no reason that speed limits or the next
turn should ever come as a surprise.
We invite people to explore the world, while feeling secure that
HERE Drive will be there with them for every turn,
even if reception isn’t.
6
HERE DRIVEThe open road made easy.
Nokia Internal Use Only
HERE
TRANSIT
The best way around town
Simply type in your destination
and see all the route options to
get you there—integrating bus,
train, ferry and more. Compare
routes and choose the route and
time that work best for you. All
with an intuitive and ‘glance and
go’ interface.
Nokia Internal Use Only
8
Nokia Internal Use Only
HERE APPS
They also work together, and now
with launchers you can also tap into
their functionality with just couple of
lines of code.
Nokia Internal Use Only
HERE
LAUNCHERS
API
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
HERE LAUNCHERS API
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• The API providers Launchers that allow integration with
public transit as well as Maps and Drive navigation in a
very easy manner:
• Using ready made (open source) library, or by
• Using the defined protocol directly.
• Open source project available at:
https://projects.developer.nokia.com/here_launchers
• Documentation available at:
http://www.developer.nokia.com/Resources/Library/Lumia/
WP8
Nokia Internal Use Only
QUICK START FOR THE API
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
1. Add the library into your project
• Right-click the "References" folder and Select "Add Reference“
• Click the "Browse" button and Locate the library file and click
"Add"
2. Add namespace to the C# file
• using Nokia.Phone.HereLaunchers;
3. Construct launcher, give values and execute
ExploremapsShowMapTask showMap = new ExploremapsShowMapTask();
showMap.Location = new GeoCoordinate(51.501249,-0.126271);
showMap.Zoom = 10;
showMap.Show();
WP8
Nokia Internal Use Only
REMEMBER TO SET APPID
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• You need to have Application ID and token, and to get
these go to: https://developer.here.com/myapps
• Register on the site,
• Add new application to obtain the ID & Token
• On debug build the API will continue to work without an
application ID but will issue a warning in the debug
output. In release builds however the call to Show() will
throw an InvalidOperationException (MSDN) if the
Application ID is missing.
WP8
Nokia Internal Use Only
HERE LAUNCHERS (1/6)
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• ExploremapsShowMapTask
• Starts Maps with the map centered to a location
Variable Description
LocationRectangle ViewPort Viewport of the map.
GeoCoordinate Location Center coordinate for the map view.
double Zoom: Zoom level for the map view. Allowed values from 1.0 to 20.
• ExploremapsShowPlaceTask
• Starts Maps with the map centered to a place
Variable Description
GeoCoordinate Location Location coordinate for the place.
string Title Title to be used with the place.
double Zoom Zoom level for the map view. Allowed values from 1.0 to 20.0.
WP8
Nokia Internal Use Only
HERE LAUNCHERS (2/6)
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• ExploremapsSearchPlacesTask
• Starts Maps with the maps search
active
• ExploremapsExplorePlacesTask
• Starts Maps with the nearby POIs shown
Variable Description
GeoCoordinate Location Center coordinate for the map search.
string SearchTerm Search query to be performed.
Variable Description
GeoCoordinate Location Center coordinate for the map
List<string> Category list of categories to limit which categories are shown in the map
WP8
Nokia Internal Use Only
HERE LAUNCHERS (3/6)
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• DirectionsRouteDestinationTask
• Starts Maps with a route shown in the map
Variable Description
GeoCoordinate
Destination
Destination location
GeoCoordinate
Origin
Departure location
RouteMode
Mode
Preferred route mode
WP8
Nokia Internal Use Only
HERE LAUNCHERS (4/6)
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• GuidanceWalkTask
• Starts Maps with walking guidance turned on.
• GuidanceDriveTask
• Starts Drive with destination set.
Variable Description
GeoCoordinate Destination Destination coordinate
string Title Destination title
WP8
Nokia Internal Use Only
HERE LAUNCHERS (5/6)
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• PlacesShowDetailsByLocationTask
• Starts Maps with the places view for the selected
location.
• PlacesShowDetailsByIdHrefTask
• Starts Maps with the places view for the selected
place.
Variable Description
GeoCoordinate Location Place coordinate
string Title Custom place title
Variable Description
string Id Nokia Place Id
string Href Nokia Place Href
string Title Custom place title
WP8
Nokia Internal Use Only
HERE LAUNCHERS (6/6)
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• PublicTransitRouteDestinationTask
• Starts the journeys view.
Variable Description
GeoCoordinate
Destination
(req) Destination coordinate for the journey.
string DestinationTitle (opt) Destination title to be used with journey route.
GeoCoordinate Origin (opt) Origin coordinate for the journey.
string OriginTitle (opt) Origin title to be used with journey route.
DateTime ArrivalTime (opt) Desired arrival time to the destination.
DateTime
DepartureTime
(opt) Desired departure time from the origin.
• PublicTransitSearchStopsTask
• starts the nearby stops view.
WP8
Nokia Internal Use Only
URI
SCHEME
PROTOCOL
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
URI SCHEME PROTOCOL
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• Windows Phone 8 introduces the possibility for your app
to register to a predefined kind of URI scheme. This will
allow you to launch your application from various
sources and with various optional parameters.
• The URI is passed as string to
Windows.System.Launcher.LaunchUriAsync() function
call, and system then passes the URI to the application
registered for handling it.
WP8
Nokia Internal Use Only
URI SCHEME PROTOCOL FOR HERE APPS
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• Five different URI schemes specified for Here apps:
• directions : for routing use cases.
• explore-maps : for exploring map and map services.
• guidance-drive : for drive navigation.
• guidance-walk : for walk navigation.
• places : for showing places.
• public-transit : for public transit related use cases.
• Here launchers are wrappers for the URI scheme
protocols
WP8
Nokia Internal Use Only
URI SCHEME PROTOCOL FOR HERE APPS
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
• When using the URI Schemes protocol directly, you form
the URI string as:
WP8
explore-maps://v2.0/show/map/?latlon=52.530806,13.4127509&zoom=15&appid=<AppId>
<Protocol>://v<VersionMajor>. <VersionMinor>/<action>/<noun>/?{Parameters}
• For example if you want to use the URI Scheme
implemented in the ExploremapsShowMapTask, you
could form it as follows:
Nokia Internal Use Only
PARAMETER FORMATS AND ENCODING
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
GeoCoordinate
• Latitude/longitude pair separated with comma. Latitude comes first, and longitude last.
• Both values must comply with Double number specifications. For example: "52.53,13.41".
BoundingBox
• Four Double numbers separated by comma; order is North, West, South, East coordinates.
For example: "52.6755,13.76134,52.33812,13.08835".
Double
• Each double number must have dot as a decimal separator. To ensure this, please use
InvariantCulture when converting double numbers to string.
• For example: string doubleStr =
doubleNum.ToString(System.Globalization.CultureInfo.InvariantCulture);
String
• URL encoded string. To ensure valid encoding, use the Uri.EscapeDataString() function for
encoding all string parameters.
DateTime
• 'Sortable date/time pattern' formatted date-time string. To ensure correct format, please
use ‘s’ argument with the toString function.
• For example: string encodedTime = dateTimeVariable.ToString("s");
WP8
Nokia Internal Use Only
OTHER APIS FOR
LAUNCHING APPS
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
MS- URI SCHEMES
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
WP8
private void Button_gridbut_Click(object sender, RoutedEventArgs e){
if (sender == DriveButton){
LaunchTheTask("ms-drive-to");
}else if (sender == WalkButton){
LaunchTheTask("ms-walk-to");
}
}
private void LaunchTheTask(String start){
string launchStr = start;
launchStr = launchStr + ":?destination.latitude=" +
oneMarker.GeoCoordinate.Latitude.ToString(System.Globalization.CultureInfo.InvariantCulture);
launchStr = launchStr + "&destination.longitude=" +
oneMarker.GeoCoordinate.Longitude.ToString(System.Globalization.CultureInfo.InvariantCulture);
launchStr = launchStr + "&destination.name=" + DestinationNameBox.Text;
Windows.System.Launcher.LaunchUriAsync(new Uri(launchStr));
}
Nokia Internal Use Only
MS- MAPS LAUCHER TASKS
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
MapsDirectionsTask mapsDirectionsTask = new MapsDirectionsTask();
mapsDirectionsTask.Start = new LabeledMapLocation(OriginTitle.Text, OriginMarker.GeoCoordinate);
mapsDirectionsTask.End = new LabeledMapLocation(DestinationTitle.Text, DestinationMarker.GeoCoordinate);
mapsDirectionsTask.Show()
MapsTask mapsTask = new MapsTask();
mapsTask.Center = oneMarker.GeoCoordinate;
mapsTask.SearchTerm = SearchTermBox.Text;
mapsTask.ZoomLevel = map1.ZoomLevel;
mapsTask.Show();
MapsTask mapsTask = new MapsTask();
mapsTask.Center = oneMarker.GeoCoordinate;
mapsTask.ZoomLevel = map1.ZoomLevel;
mapsTask.Show();
MapsTask mapsTask = new MapsTask();
mapsTask.Show();
Nokia Internal Use Only
8/7/2013© 2012 Nokia. All rights reserved.
© 2012 Microsoft. All rights reserved.
Thank you!

Mais conteúdo relacionado

Mais procurados

Modello, More Than Just a Pretty Picture
Modello, More Than Just a Pretty PictureModello, More Than Just a Pretty Picture
Modello, More Than Just a Pretty PictureRyo Jin
 
Mob02 windows phone 8.1 app development
Mob02   windows phone 8.1 app development Mob02   windows phone 8.1 app development
Mob02 windows phone 8.1 app development DotNetCampus
 
Lens app trasformare il telefono in una fotocamera
Lens app trasformare il telefono in una fotocameraLens app trasformare il telefono in una fotocamera
Lens app trasformare il telefono in una fotocameraMicrosoft Mobile Developer
 
App forum2015 London - RhoMobile Update
App forum2015 London - RhoMobile UpdateApp forum2015 London - RhoMobile Update
App forum2015 London - RhoMobile Updaterobgalvinjr
 
Use Ionic Framework to develop mobile application
Use Ionic Framework to develop mobile applicationUse Ionic Framework to develop mobile application
Use Ionic Framework to develop mobile applicationLucio Grenzi
 
Share multi versioning scenarios
Share  multi versioning scenariosShare  multi versioning scenarios
Share multi versioning scenariosnick_garrod
 
Building a Vuforia App for Hololens
Building a Vuforia App for HololensBuilding a Vuforia App for Hololens
Building a Vuforia App for HololensAugmentedWorldExpo
 
Lviv MD Day 2015 Олександр Краковецький "Universal Windows Platform Bridges д...
Lviv MD Day 2015 Олександр Краковецький "Universal Windows Platform Bridges д...Lviv MD Day 2015 Олександр Краковецький "Universal Windows Platform Bridges д...
Lviv MD Day 2015 Олександр Краковецький "Universal Windows Platform Bridges д...Lviv Startup Club
 
Skycore Passbook Capabilities
Skycore Passbook CapabilitiesSkycore Passbook Capabilities
Skycore Passbook Capabilitiesskycore
 
Power of salesforce LWC with Mulesoft using platform events
Power of salesforce LWC with Mulesoft using platform eventsPower of salesforce LWC with Mulesoft using platform events
Power of salesforce LWC with Mulesoft using platform eventspqrs1234
 
David Beard (PTC/Vuforia) Building a Vuforia App for Hololens
David Beard (PTC/Vuforia) Building a Vuforia App for HololensDavid Beard (PTC/Vuforia) Building a Vuforia App for Hololens
David Beard (PTC/Vuforia) Building a Vuforia App for HololensAugmentedWorldExpo
 

Mais procurados (12)

Modello, More Than Just a Pretty Picture
Modello, More Than Just a Pretty PictureModello, More Than Just a Pretty Picture
Modello, More Than Just a Pretty Picture
 
Mob02 windows phone 8.1 app development
Mob02   windows phone 8.1 app development Mob02   windows phone 8.1 app development
Mob02 windows phone 8.1 app development
 
Lens app trasformare il telefono in una fotocamera
Lens app trasformare il telefono in una fotocameraLens app trasformare il telefono in una fotocamera
Lens app trasformare il telefono in una fotocamera
 
App forum2015 London - RhoMobile Update
App forum2015 London - RhoMobile UpdateApp forum2015 London - RhoMobile Update
App forum2015 London - RhoMobile Update
 
Use Ionic Framework to develop mobile application
Use Ionic Framework to develop mobile applicationUse Ionic Framework to develop mobile application
Use Ionic Framework to develop mobile application
 
Firefox os
Firefox osFirefox os
Firefox os
 
Share multi versioning scenarios
Share  multi versioning scenariosShare  multi versioning scenarios
Share multi versioning scenarios
 
Building a Vuforia App for Hololens
Building a Vuforia App for HololensBuilding a Vuforia App for Hololens
Building a Vuforia App for Hololens
 
Lviv MD Day 2015 Олександр Краковецький "Universal Windows Platform Bridges д...
Lviv MD Day 2015 Олександр Краковецький "Universal Windows Platform Bridges д...Lviv MD Day 2015 Олександр Краковецький "Universal Windows Platform Bridges д...
Lviv MD Day 2015 Олександр Краковецький "Universal Windows Platform Bridges д...
 
Skycore Passbook Capabilities
Skycore Passbook CapabilitiesSkycore Passbook Capabilities
Skycore Passbook Capabilities
 
Power of salesforce LWC with Mulesoft using platform events
Power of salesforce LWC with Mulesoft using platform eventsPower of salesforce LWC with Mulesoft using platform events
Power of salesforce LWC with Mulesoft using platform events
 
David Beard (PTC/Vuforia) Building a Vuforia App for Hololens
David Beard (PTC/Vuforia) Building a Vuforia App for HololensDavid Beard (PTC/Vuforia) Building a Vuforia App for Hololens
David Beard (PTC/Vuforia) Building a Vuforia App for Hololens
 

Semelhante a LUMIA APP LAB #16: HERE APPLICATION LAUNCHERS

Location and API Maps in Windows Phone 8
Location and API Maps in Windows Phone 8Location and API Maps in Windows Phone 8
Location and API Maps in Windows Phone 8Antonio Pelleriti
 
Offline maps for mobile developers (Android/iOS)
Offline maps for mobile developers (Android/iOS)Offline maps for mobile developers (Android/iOS)
Offline maps for mobile developers (Android/iOS)Vadim Nikolaev
 
Android Scripting
Android ScriptingAndroid Scripting
Android ScriptingJuan Gomez
 
Top 4 Cross Platform tools for Mobile App Development
Top 4 Cross Platform tools for Mobile App DevelopmentTop 4 Cross Platform tools for Mobile App Development
Top 4 Cross Platform tools for Mobile App Developmenttechugo
 
Making the Mobile Web Native with PhoneGap
Making the Mobile Web Native with PhoneGapMaking the Mobile Web Native with PhoneGap
Making the Mobile Web Native with PhoneGapRoy Clarkson
 
Cross Platform Mobile Development
Cross Platform Mobile DevelopmentCross Platform Mobile Development
Cross Platform Mobile DevelopmentManesh Lad
 
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGapBuilding Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGapNick Landry
 
Project presentation
Project presentationProject presentation
Project presentationMayank Puri
 
2013 Vendor, MapQuest Plugins for Leaflet by Jonathan Harahush
2013 Vendor, MapQuest Plugins for Leaflet by Jonathan Harahush2013 Vendor, MapQuest Plugins for Leaflet by Jonathan Harahush
2013 Vendor, MapQuest Plugins for Leaflet by Jonathan HarahushGIS in the Rockies
 
The Importance of Cross Platform Technology
The Importance of Cross Platform TechnologyThe Importance of Cross Platform Technology
The Importance of Cross Platform TechnologyOlivia2590
 
City search documentation
City search documentationCity search documentation
City search documentationRajesh Varanasi
 
Mobile Developer's Guide To The Galaxy Vol.7
Mobile Developer's Guide To The Galaxy Vol.7Mobile Developer's Guide To The Galaxy Vol.7
Mobile Developer's Guide To The Galaxy Vol.7Marco Tabor
 
Extending Spring MVC with Spring Mobile and JavaScript
Extending Spring MVC with Spring Mobile and JavaScriptExtending Spring MVC with Spring Mobile and JavaScript
Extending Spring MVC with Spring Mobile and JavaScriptRoy Clarkson
 
Rho mobile v4 - DroidCon Paris 18 june 2013
Rho mobile v4 - DroidCon Paris 18 june 2013Rho mobile v4 - DroidCon Paris 18 june 2013
Rho mobile v4 - DroidCon Paris 18 june 2013Paris Android User Group
 
Developing Windows Phone 8 apps using PhoneGap
Developing Windows Phone 8 apps using PhoneGapDeveloping Windows Phone 8 apps using PhoneGap
Developing Windows Phone 8 apps using PhoneGapAmar Mesic
 
OpenWorld con2828 Fluid, Classic, or Both
OpenWorld con2828 Fluid, Classic, or BothOpenWorld con2828 Fluid, Classic, or Both
OpenWorld con2828 Fluid, Classic, or BothGraham Smith
 
Cross platform mobile apps using rhomobile and jquery mobile
Cross platform mobile apps using rhomobile and jquery mobileCross platform mobile apps using rhomobile and jquery mobile
Cross platform mobile apps using rhomobile and jquery mobileSPRITLE SOFTWARE PRIVATE LIMIT ED
 

Semelhante a LUMIA APP LAB #16: HERE APPLICATION LAUNCHERS (20)

Location and API Maps in Windows Phone 8
Location and API Maps in Windows Phone 8Location and API Maps in Windows Phone 8
Location and API Maps in Windows Phone 8
 
Intro to apps with maps for series 40
Intro to apps with maps for series 40Intro to apps with maps for series 40
Intro to apps with maps for series 40
 
Advanced Maps on Apps for Series 40
Advanced Maps on Apps for Series 40Advanced Maps on Apps for Series 40
Advanced Maps on Apps for Series 40
 
Offline maps for mobile developers (Android/iOS)
Offline maps for mobile developers (Android/iOS)Offline maps for mobile developers (Android/iOS)
Offline maps for mobile developers (Android/iOS)
 
Android Scripting
Android ScriptingAndroid Scripting
Android Scripting
 
Top 4 Cross Platform tools for Mobile App Development
Top 4 Cross Platform tools for Mobile App DevelopmentTop 4 Cross Platform tools for Mobile App Development
Top 4 Cross Platform tools for Mobile App Development
 
Making the Mobile Web Native with PhoneGap
Making the Mobile Web Native with PhoneGapMaking the Mobile Web Native with PhoneGap
Making the Mobile Web Native with PhoneGap
 
Cross Platform Mobile Development
Cross Platform Mobile DevelopmentCross Platform Mobile Development
Cross Platform Mobile Development
 
HERE Maps for the Nokia X platform
HERE Maps for the Nokia X platformHERE Maps for the Nokia X platform
HERE Maps for the Nokia X platform
 
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGapBuilding Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
 
Project presentation
Project presentationProject presentation
Project presentation
 
2013 Vendor, MapQuest Plugins for Leaflet by Jonathan Harahush
2013 Vendor, MapQuest Plugins for Leaflet by Jonathan Harahush2013 Vendor, MapQuest Plugins for Leaflet by Jonathan Harahush
2013 Vendor, MapQuest Plugins for Leaflet by Jonathan Harahush
 
The Importance of Cross Platform Technology
The Importance of Cross Platform TechnologyThe Importance of Cross Platform Technology
The Importance of Cross Platform Technology
 
City search documentation
City search documentationCity search documentation
City search documentation
 
Mobile Developer's Guide To The Galaxy Vol.7
Mobile Developer's Guide To The Galaxy Vol.7Mobile Developer's Guide To The Galaxy Vol.7
Mobile Developer's Guide To The Galaxy Vol.7
 
Extending Spring MVC with Spring Mobile and JavaScript
Extending Spring MVC with Spring Mobile and JavaScriptExtending Spring MVC with Spring Mobile and JavaScript
Extending Spring MVC with Spring Mobile and JavaScript
 
Rho mobile v4 - DroidCon Paris 18 june 2013
Rho mobile v4 - DroidCon Paris 18 june 2013Rho mobile v4 - DroidCon Paris 18 june 2013
Rho mobile v4 - DroidCon Paris 18 june 2013
 
Developing Windows Phone 8 apps using PhoneGap
Developing Windows Phone 8 apps using PhoneGapDeveloping Windows Phone 8 apps using PhoneGap
Developing Windows Phone 8 apps using PhoneGap
 
OpenWorld con2828 Fluid, Classic, or Both
OpenWorld con2828 Fluid, Classic, or BothOpenWorld con2828 Fluid, Classic, or Both
OpenWorld con2828 Fluid, Classic, or Both
 
Cross platform mobile apps using rhomobile and jquery mobile
Cross platform mobile apps using rhomobile and jquery mobileCross platform mobile apps using rhomobile and jquery mobile
Cross platform mobile apps using rhomobile and jquery mobile
 

Mais de Microsoft Mobile Developer

Location based services for Nokia X and Nokia Asha using Geo2tag
Location based services for Nokia X and Nokia Asha using Geo2tagLocation based services for Nokia X and Nokia Asha using Geo2tag
Location based services for Nokia X and Nokia Asha using Geo2tagMicrosoft Mobile Developer
 
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultations
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultationsLumia App Labs: Lessons learned from 50 windows phone 8 design consultations
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultationsMicrosoft Mobile Developer
 
Windows Phone 8 speech: parliamo con la nostra app
Windows Phone 8 speech: parliamo con la nostra appWindows Phone 8 speech: parliamo con la nostra app
Windows Phone 8 speech: parliamo con la nostra appMicrosoft Mobile Developer
 
La pubblicazione di un'applicazione sullo store
La pubblicazione di un'applicazione sullo storeLa pubblicazione di un'applicazione sullo store
La pubblicazione di un'applicazione sullo storeMicrosoft Mobile Developer
 
Il pattern mvvm come strutturare al meglio il vostro progetto
Il pattern mvvm come strutturare al meglio il vostro progettoIl pattern mvvm come strutturare al meglio il vostro progetto
Il pattern mvvm come strutturare al meglio il vostro progettoMicrosoft Mobile Developer
 
Nokia Asha webinar: Developing health-care applications for Nokia Asha phones
Nokia Asha webinar: Developing health-care applications for Nokia Asha phonesNokia Asha webinar: Developing health-care applications for Nokia Asha phones
Nokia Asha webinar: Developing health-care applications for Nokia Asha phonesMicrosoft Mobile Developer
 
Nokia Asha webinar: Add VoIP services to your Nokia Asha apps
Nokia Asha webinar: Add VoIP services to your Nokia Asha appsNokia Asha webinar: Add VoIP services to your Nokia Asha apps
Nokia Asha webinar: Add VoIP services to your Nokia Asha appsMicrosoft Mobile Developer
 
LUMIA APP LABS #18: INTRODUCING NOKIA IMAGING SDK 1.0
LUMIA APP LABS #18: INTRODUCING NOKIA IMAGING SDK 1.0LUMIA APP LABS #18: INTRODUCING NOKIA IMAGING SDK 1.0
LUMIA APP LABS #18: INTRODUCING NOKIA IMAGING SDK 1.0Microsoft Mobile Developer
 

Mais de Microsoft Mobile Developer (20)

Lumia App Labs: Lumia SensorCore SDK beta
Lumia App Labs: Lumia SensorCore SDK betaLumia App Labs: Lumia SensorCore SDK beta
Lumia App Labs: Lumia SensorCore SDK beta
 
Nokia Asha from idea to app - Imaging
Nokia Asha from idea to app - ImagingNokia Asha from idea to app - Imaging
Nokia Asha from idea to app - Imaging
 
Healthcare apps for Nokia X and Nokia Asha
Healthcare apps for Nokia X and Nokia AshaHealthcare apps for Nokia X and Nokia Asha
Healthcare apps for Nokia X and Nokia Asha
 
DIY Nokia Asha app usability studies
DIY Nokia Asha app usability studiesDIY Nokia Asha app usability studies
DIY Nokia Asha app usability studies
 
Lessons learned from Nokia X UI reviews
Lessons learned from Nokia X UI reviewsLessons learned from Nokia X UI reviews
Lessons learned from Nokia X UI reviews
 
Location based services for Nokia X and Nokia Asha using Geo2tag
Location based services for Nokia X and Nokia Asha using Geo2tagLocation based services for Nokia X and Nokia Asha using Geo2tag
Location based services for Nokia X and Nokia Asha using Geo2tag
 
Nokia In-App Payment - UX considerations
Nokia In-App Payment - UX considerationsNokia In-App Payment - UX considerations
Nokia In-App Payment - UX considerations
 
UX considerations when porting to Nokia X
UX considerations when porting to Nokia XUX considerations when porting to Nokia X
UX considerations when porting to Nokia X
 
Kids' games and educational app design
Kids' games and educational app designKids' games and educational app design
Kids' games and educational app design
 
Nokia X: opportunities for developers
Nokia X: opportunities for developersNokia X: opportunities for developers
Nokia X: opportunities for developers
 
Lumia App Labs: Nokia Imaging SDK 1.1
Lumia App Labs: Nokia Imaging SDK 1.1Lumia App Labs: Nokia Imaging SDK 1.1
Lumia App Labs: Nokia Imaging SDK 1.1
 
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultations
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultationsLumia App Labs: Lessons learned from 50 windows phone 8 design consultations
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultations
 
Windows Phone 8 speech: parliamo con la nostra app
Windows Phone 8 speech: parliamo con la nostra appWindows Phone 8 speech: parliamo con la nostra app
Windows Phone 8 speech: parliamo con la nostra app
 
La pubblicazione di un'applicazione sullo store
La pubblicazione di un'applicazione sullo storeLa pubblicazione di un'applicazione sullo store
La pubblicazione di un'applicazione sullo store
 
Il pattern mvvm come strutturare al meglio il vostro progetto
Il pattern mvvm come strutturare al meglio il vostro progettoIl pattern mvvm come strutturare al meglio il vostro progetto
Il pattern mvvm come strutturare al meglio il vostro progetto
 
NFC, Bluetooth e comunicazione tra app
NFC, Bluetooth e comunicazione tra appNFC, Bluetooth e comunicazione tra app
NFC, Bluetooth e comunicazione tra app
 
Nokia Asha webinar: Developing health-care applications for Nokia Asha phones
Nokia Asha webinar: Developing health-care applications for Nokia Asha phonesNokia Asha webinar: Developing health-care applications for Nokia Asha phones
Nokia Asha webinar: Developing health-care applications for Nokia Asha phones
 
Connettersi al Cloud Azure Mobile Services
Connettersi al Cloud Azure Mobile ServicesConnettersi al Cloud Azure Mobile Services
Connettersi al Cloud Azure Mobile Services
 
Nokia Asha webinar: Add VoIP services to your Nokia Asha apps
Nokia Asha webinar: Add VoIP services to your Nokia Asha appsNokia Asha webinar: Add VoIP services to your Nokia Asha apps
Nokia Asha webinar: Add VoIP services to your Nokia Asha apps
 
LUMIA APP LABS #18: INTRODUCING NOKIA IMAGING SDK 1.0
LUMIA APP LABS #18: INTRODUCING NOKIA IMAGING SDK 1.0LUMIA APP LABS #18: INTRODUCING NOKIA IMAGING SDK 1.0
LUMIA APP LABS #18: INTRODUCING NOKIA IMAGING SDK 1.0
 

Último

Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 

Último (20)

Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 

LUMIA APP LAB #16: HERE APPLICATION LAUNCHERS

  • 1. HERE LAUNCHERS FOR WINDOWS PHONE Jukka Silvennoinen Chief Engineer LUMIA APP LABS #16
  • 2. Nokia Internal Use Only CONTENT. 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • HERE applications • HERE Launchers API • URI Scheme for HERE apps • Other APIs for launching apps
  • 3. Nokia Internal Use Only HERE APPLICATIONS 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
  • 4. Nokia Internal Use Only HERE APPLICATIONS 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. HERE Maps HERE Drive WP8 HERE Transit HERE City Lens
  • 5. Nokia Internal Use Only 5 Your compass to discovery HERE Maps shows you the best of where you are and makes it easier than ever to get where you’re going. Find what you are looking for, discover the hidden gems nearby, and get there any way you like. HERE MAPS
  • 6. Nokia Internal Use Only HERE Drive and HERE Drive+ brings drivers the best turn-by-turn voice guided navigation experience to reach any destination safely and easily—even without a data connection for a true offline experience. We give drivers options that are based on what’s important in their daily lives. The best route between point A and point B is more than just a highlighted line, it’s a personal path. We inform drivers about the situation on the road before they get behind the wheel. There’s no reason that speed limits or the next turn should ever come as a surprise. We invite people to explore the world, while feeling secure that HERE Drive will be there with them for every turn, even if reception isn’t. 6 HERE DRIVEThe open road made easy.
  • 7. Nokia Internal Use Only HERE TRANSIT The best way around town Simply type in your destination and see all the route options to get you there—integrating bus, train, ferry and more. Compare routes and choose the route and time that work best for you. All with an intuitive and ‘glance and go’ interface.
  • 9. Nokia Internal Use Only HERE APPS They also work together, and now with launchers you can also tap into their functionality with just couple of lines of code.
  • 10. Nokia Internal Use Only HERE LAUNCHERS API 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
  • 11. Nokia Internal Use Only HERE LAUNCHERS API 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • The API providers Launchers that allow integration with public transit as well as Maps and Drive navigation in a very easy manner: • Using ready made (open source) library, or by • Using the defined protocol directly. • Open source project available at: https://projects.developer.nokia.com/here_launchers • Documentation available at: http://www.developer.nokia.com/Resources/Library/Lumia/ WP8
  • 12. Nokia Internal Use Only QUICK START FOR THE API 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. 1. Add the library into your project • Right-click the "References" folder and Select "Add Reference“ • Click the "Browse" button and Locate the library file and click "Add" 2. Add namespace to the C# file • using Nokia.Phone.HereLaunchers; 3. Construct launcher, give values and execute ExploremapsShowMapTask showMap = new ExploremapsShowMapTask(); showMap.Location = new GeoCoordinate(51.501249,-0.126271); showMap.Zoom = 10; showMap.Show(); WP8
  • 13. Nokia Internal Use Only REMEMBER TO SET APPID 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • You need to have Application ID and token, and to get these go to: https://developer.here.com/myapps • Register on the site, • Add new application to obtain the ID & Token • On debug build the API will continue to work without an application ID but will issue a warning in the debug output. In release builds however the call to Show() will throw an InvalidOperationException (MSDN) if the Application ID is missing. WP8
  • 14. Nokia Internal Use Only HERE LAUNCHERS (1/6) 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • ExploremapsShowMapTask • Starts Maps with the map centered to a location Variable Description LocationRectangle ViewPort Viewport of the map. GeoCoordinate Location Center coordinate for the map view. double Zoom: Zoom level for the map view. Allowed values from 1.0 to 20. • ExploremapsShowPlaceTask • Starts Maps with the map centered to a place Variable Description GeoCoordinate Location Location coordinate for the place. string Title Title to be used with the place. double Zoom Zoom level for the map view. Allowed values from 1.0 to 20.0. WP8
  • 15. Nokia Internal Use Only HERE LAUNCHERS (2/6) 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • ExploremapsSearchPlacesTask • Starts Maps with the maps search active • ExploremapsExplorePlacesTask • Starts Maps with the nearby POIs shown Variable Description GeoCoordinate Location Center coordinate for the map search. string SearchTerm Search query to be performed. Variable Description GeoCoordinate Location Center coordinate for the map List<string> Category list of categories to limit which categories are shown in the map WP8
  • 16. Nokia Internal Use Only HERE LAUNCHERS (3/6) 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • DirectionsRouteDestinationTask • Starts Maps with a route shown in the map Variable Description GeoCoordinate Destination Destination location GeoCoordinate Origin Departure location RouteMode Mode Preferred route mode WP8
  • 17. Nokia Internal Use Only HERE LAUNCHERS (4/6) 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • GuidanceWalkTask • Starts Maps with walking guidance turned on. • GuidanceDriveTask • Starts Drive with destination set. Variable Description GeoCoordinate Destination Destination coordinate string Title Destination title WP8
  • 18. Nokia Internal Use Only HERE LAUNCHERS (5/6) 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • PlacesShowDetailsByLocationTask • Starts Maps with the places view for the selected location. • PlacesShowDetailsByIdHrefTask • Starts Maps with the places view for the selected place. Variable Description GeoCoordinate Location Place coordinate string Title Custom place title Variable Description string Id Nokia Place Id string Href Nokia Place Href string Title Custom place title WP8
  • 19. Nokia Internal Use Only HERE LAUNCHERS (6/6) 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • PublicTransitRouteDestinationTask • Starts the journeys view. Variable Description GeoCoordinate Destination (req) Destination coordinate for the journey. string DestinationTitle (opt) Destination title to be used with journey route. GeoCoordinate Origin (opt) Origin coordinate for the journey. string OriginTitle (opt) Origin title to be used with journey route. DateTime ArrivalTime (opt) Desired arrival time to the destination. DateTime DepartureTime (opt) Desired departure time from the origin. • PublicTransitSearchStopsTask • starts the nearby stops view. WP8
  • 20. Nokia Internal Use Only URI SCHEME PROTOCOL 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
  • 21. Nokia Internal Use Only URI SCHEME PROTOCOL 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • Windows Phone 8 introduces the possibility for your app to register to a predefined kind of URI scheme. This will allow you to launch your application from various sources and with various optional parameters. • The URI is passed as string to Windows.System.Launcher.LaunchUriAsync() function call, and system then passes the URI to the application registered for handling it. WP8
  • 22. Nokia Internal Use Only URI SCHEME PROTOCOL FOR HERE APPS 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • Five different URI schemes specified for Here apps: • directions : for routing use cases. • explore-maps : for exploring map and map services. • guidance-drive : for drive navigation. • guidance-walk : for walk navigation. • places : for showing places. • public-transit : for public transit related use cases. • Here launchers are wrappers for the URI scheme protocols WP8
  • 23. Nokia Internal Use Only URI SCHEME PROTOCOL FOR HERE APPS 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. • When using the URI Schemes protocol directly, you form the URI string as: WP8 explore-maps://v2.0/show/map/?latlon=52.530806,13.4127509&zoom=15&appid=<AppId> <Protocol>://v<VersionMajor>. <VersionMinor>/<action>/<noun>/?{Parameters} • For example if you want to use the URI Scheme implemented in the ExploremapsShowMapTask, you could form it as follows:
  • 24. Nokia Internal Use Only PARAMETER FORMATS AND ENCODING 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. GeoCoordinate • Latitude/longitude pair separated with comma. Latitude comes first, and longitude last. • Both values must comply with Double number specifications. For example: "52.53,13.41". BoundingBox • Four Double numbers separated by comma; order is North, West, South, East coordinates. For example: "52.6755,13.76134,52.33812,13.08835". Double • Each double number must have dot as a decimal separator. To ensure this, please use InvariantCulture when converting double numbers to string. • For example: string doubleStr = doubleNum.ToString(System.Globalization.CultureInfo.InvariantCulture); String • URL encoded string. To ensure valid encoding, use the Uri.EscapeDataString() function for encoding all string parameters. DateTime • 'Sortable date/time pattern' formatted date-time string. To ensure correct format, please use ‘s’ argument with the toString function. • For example: string encodedTime = dateTimeVariable.ToString("s"); WP8
  • 25. Nokia Internal Use Only OTHER APIS FOR LAUNCHING APPS 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
  • 26. Nokia Internal Use Only MS- URI SCHEMES 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. WP8 private void Button_gridbut_Click(object sender, RoutedEventArgs e){ if (sender == DriveButton){ LaunchTheTask("ms-drive-to"); }else if (sender == WalkButton){ LaunchTheTask("ms-walk-to"); } } private void LaunchTheTask(String start){ string launchStr = start; launchStr = launchStr + ":?destination.latitude=" + oneMarker.GeoCoordinate.Latitude.ToString(System.Globalization.CultureInfo.InvariantCulture); launchStr = launchStr + "&destination.longitude=" + oneMarker.GeoCoordinate.Longitude.ToString(System.Globalization.CultureInfo.InvariantCulture); launchStr = launchStr + "&destination.name=" + DestinationNameBox.Text; Windows.System.Launcher.LaunchUriAsync(new Uri(launchStr)); }
  • 27. Nokia Internal Use Only MS- MAPS LAUCHER TASKS 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. MapsDirectionsTask mapsDirectionsTask = new MapsDirectionsTask(); mapsDirectionsTask.Start = new LabeledMapLocation(OriginTitle.Text, OriginMarker.GeoCoordinate); mapsDirectionsTask.End = new LabeledMapLocation(DestinationTitle.Text, DestinationMarker.GeoCoordinate); mapsDirectionsTask.Show() MapsTask mapsTask = new MapsTask(); mapsTask.Center = oneMarker.GeoCoordinate; mapsTask.SearchTerm = SearchTermBox.Text; mapsTask.ZoomLevel = map1.ZoomLevel; mapsTask.Show(); MapsTask mapsTask = new MapsTask(); mapsTask.Center = oneMarker.GeoCoordinate; mapsTask.ZoomLevel = map1.ZoomLevel; mapsTask.Show(); MapsTask mapsTask = new MapsTask(); mapsTask.Show();
  • 28. Nokia Internal Use Only 8/7/2013© 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved. Thank you!