0

I am writing application in WP7 for traveling. Is it possible to navigate to GPS coordinate with Bing Maps on WP7.

I mean I have GPS coordinate, button "travel to" and after clicking it I'll have route to that point (by Bing Service)?

boski
  • 1,106
  • 3
  • 21
  • 44

2 Answers2

1

I haven't tested this on Windows Phone 7, but judging by this MSDN article it also applies to WP 7.1.

Here's the sample:

BingMapsDirectionsTask bingMapsDirectionsTask = new BingMapsDirectionsTask();

// You can specify a label and a geocoordinate for the end point.
// GeoCoordinate spaceNeedleLocation = new GeoCoordinate(47.6204,-122.3493);
// LabeledMapLocation spaceNeedleLML = new LabeledMapLocation("Space Needle",     spaceNeedleLocation);

// If you set the geocoordinate parameter to null, the label parameter is used as a   search term.
LabeledMapLocation spaceNeedleLML = new LabeledMapLocation("Space Needle", null);

bingMapsDirectionsTask.End = spaceNeedleLML;

// If bingMapsDirectionsTask.Start is not set, the user's current location is used as the start point.

 bingMapsDirectionsTask.Show();
Ertay Shashko
  • 1,247
  • 2
  • 12
  • 21
1

You can open Here Drive (by Nokia) with the following URI scheme:

guidance-drive://v2.0/navigate/destination/?latlon=52.53,13.41&title=Museum

This will switch app, then start navigating to 52.52/13.41. The title is optional.

Source: http://developer.nokia.com/resources/library/Lumia/maps-and-navigation/here-launchers/wp-uri-schemes-for-location-applications/drive-guidance.html

Cedric Reichenbach
  • 8,970
  • 6
  • 54
  • 89