Answered by:
I need to show a point in a map

Question
-
Here's the thing. I have an app which is now running on Android devices and iOS.
In a specific action, my app provides an address that I send to the native maps app in the device. So in Android Google Maps shows up with the result and in iOS the same thing happens. Is there a way I can have the same behavior in a Windows Store app? I do have the Bing Maps app installed and I noticed that if I "search" for an address in the contexxt of the Bing Maps app it shows the result as expected.
I know I can create my own page and add a Bing Maps control and show that page, but I'd really love fir the user to have the same experience they already have in Android and iOS, using the native maps app and all its features.
Best regards,
Sebastian
http://bit.ly/sebagomez
Friday, October 12, 2012 3:14 PM
Answers
-
Hi Sebastian,
There is no direct programmatic access between apps (including the Bing Maps app). If the user has an mapping app which supports loading specific addresses via a protocol then you can launch a URI matching that protocol.
See URI Scheme for maps application for information on the maps app protocol.
--Rob
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Monday, October 15, 2012 6:07 PM
- Marked as answer by sebastian gomez Tuesday, October 16, 2012 3:42 PM
Monday, October 15, 2012 5:59 PMModerator
All replies
-
Hi Sebastian,
Check out the Bing Maps SDK forums here:
http://www.microsoft.com/maps/developers/web.aspx
Or are you asking how to get the location?
Here are some samples:
http://code.msdn.microsoft.com/windowsapps/Geolocation-2483de66
http://code.msdn.microsoft.com/windowsapps/Mashup-Sample-10689f5b
Jeff Sanders (MSFT)
- Edited by Jeff SandersMicrosoft employee, Moderator Monday, October 15, 2012 3:55 PM
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Monday, October 15, 2012 3:55 PM
- Unproposed as answer by sebastian gomez Tuesday, October 16, 2012 3:41 PM
Monday, October 15, 2012 3:53 PMModerator -
Hey Jeff, I know the Bing Maps SDK and I know that it is possible for me to have a bing map in my app. That's my second choice.
My question is if there's a way I can tell the Bing Maps app in win8 box to show an address (that is from my app). That is possible in both Andoid and iOS platforms, so I was wondering if it is possible in WinRT to do that.
What I saw that works is searching for an address in the Bing Maps app, is there a way I can fire that from my own app?
http://bit.ly/sebagomez
Monday, October 15, 2012 4:17 PM -
Hi Sebastian,
There is no direct programmatic access between apps (including the Bing Maps app). If the user has an mapping app which supports loading specific addresses via a protocol then you can launch a URI matching that protocol.
See URI Scheme for maps application for information on the maps app protocol.
--Rob
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Monday, October 15, 2012 6:07 PM
- Marked as answer by sebastian gomez Tuesday, October 16, 2012 3:42 PM
Monday, October 15, 2012 5:59 PMModerator -
Rob is correct.
So in your case you can accomplish what you want to do using the LaunchURIAsync function of the Launcher class:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.system.launcher.aspx
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Monday, October 15, 2012 6:07 PM
- Unproposed as answer by sebastian gomez Tuesday, October 16, 2012 3:42 PM
Monday, October 15, 2012 6:06 PMModerator -
Great! thank you both
http://bit.ly/sebagomez
Tuesday, October 16, 2012 3:42 PM