×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    544

    Re: HERE Maps on WP8 route between two points

    From the HERE launcher docs...

    "All the URI scheme protocols defined below have an extra parameter called “appid” which identified the calling application for the purpose of tracking the T&C compliance. For information about how to obtain the Application ID, please see Adding the ApplicationID and AuthenticationToken (MSDN)."

  2. #17
    Registered User
    Join Date
    Jul 2013
    Posts
    21

    Re: HERE Maps on WP8 route between two points

    Is it possible to give a name for the route as well as give name for the start and destination points?
    Last edited by m.findlay93; 2014-01-03 at 22:35.

  3. #18
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: HERE Maps on WP8 route between two points

    Can you please follow the links and read the docs ?

    All possible arguments you can give with the API are explained in the docs.

  4. #19
    Registered User
    Join Date
    Jul 2013
    Posts
    21

    Re: HERE Maps on WP8 route between two points

    With the code below HERE Maps does open but it doesn't show the directions. Please look at the code below and tell me what is wrong with it, I'd be very grateful:

    Imports Coding4Fun.Toolkit.Controls
    Imports Nokia.Phone.HereLaunchers
    Imports System.Device.Location

    Partial Public Class Regent_s_Park
    Inherits PhoneApplicationPage

    Public Sub New()
    InitializeComponent()
    End Sub

    Private Async Sub DirectionsRPtoGPSButton_Click(sender As Object, e As Input.GestureEventArgs)
    Dim result As IAsyncResult = Microsoft.Xna.Framework.GamerServices.Guide.BeginShowMessageBox("Regent's Park to Great Portland Street", "Walking directions will open in HERE Maps. If you are using 3G or 4G then you may incur data charges.", New String() {"ok", "cancel"}, 0, Microsoft.Xna.Framework.GamerServices.MessageBoxIcon.Alert, Nothing, _
    Nothing)

    result.AsyncWaitHandle.WaitOne()

    Dim choice As System.Nullable(Of Integer) = Microsoft.Xna.Framework.GamerServices.Guide.EndShowMessageBox(result)
    If choice.HasValue Then

    If choice.Value = 0 Then

    Dim uri As New Uri("directions://v2.0/route/destination/?latlon=52.53,13.41&origin.latlon=52.53,13.41&mode=car&appid=<e2249704-a5bb-451a-99ac-c76558b00930>")

    Dim success = Await Windows.System.Launcher.LaunchUriAsync(uri)


    If success Then

    Else
    End If
    End If
    End If
    End Sub
    End Class

  5. #20
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: HERE Maps on WP8 route between two points

    the appid looks strange, though I have not checked the real Id's for WP8 apps yet, and only used some otehr ones, which indeed are not recommendede to be used due the usage restrictions.

    Anyway, in the end I would suppose that the real problem would be that your origin & destination, both are excatly the same place.

  6. #21
    Registered User
    Join Date
    Jul 2013
    Posts
    21

    Re: HERE Maps on WP8 route between two points

    The following image shows my app id:
    http://social.msdn.microsoft.com/Forums/getfile/393123

  7. #22
    Registered User
    Join Date
    Jul 2013
    Posts
    21

    Re: HERE Maps on WP8 route between two points

    Also I did change the locations but the directions still don't appear. Is there something that is missing from my code?

  8. #23
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: HERE Maps on WP8 route between two points

    just in case it matters, can you temporarily try using values you could reserver from: http://developer.here.com/ . note that you propably should not use the values gotten from the site in your release version, due the limitation posed for the usage.

    Also you could try whether changing the "appid=<e2249704-a5bb-451a-99ac-c76558b00930>" part to be just "appid=e2249704-a5bb-451a-99ac-c76558b00930" would be in any help, I would suppose you should not have <> characters added in there

  9. #24
    Registered User
    Join Date
    Jul 2013
    Posts
    21

    Re: HERE Maps on WP8 route between two points

    THAT'S IT! The <> characters were not supposed to be there. Thanks for all of your help.

  10. #25
    Registered User
    Join Date
    Jul 2013
    Posts
    21

    Re: HERE Maps on WP8 route between two points

    Is it possible to change the names of the start and destination points?

  11. #26
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    544

    Re: HERE Maps on WP8 route between two points

    Quote Originally Posted by m.findlay93 View Post
    Is it possible to change the names of the start and destination points?
    It doesn't look like it, no.

  12. #27
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: HERE Maps on WP8 route between two points

    Quote Originally Posted by m.findlay93 View Post
    Is it possible to change the names of the start and destination points?
    Yep, as said, you should read the docs. Basically all possible arguments that can be used are documented in there.

  13. #28
    Registered User
    Join Date
    Jul 2013
    Posts
    21

    Re: HERE Maps on WP8 route between two points

    OK just read the docs but they only say:

    &title=Museum

    I want to change both the origin & the destination so would I need to put something before 'title' such as:

    &origin.title=Museum
    &destination.title=Museum

    etc?
    Last edited by m.findlay93; 2014-01-06 at 19:49.

  14. #29
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: HERE Maps on WP8 route between two points

    Have you noticed that there are multiple features, each having own docs etc. ?

    Basically, indeed if you are using HERE transit via its protocol, you can set different names for the start & destination. And for guided navigation you also have option of giving title for the destination.

    But I have assumed that you have been talking about directions, i.e. having the route set & shown in a HERE maps application, and indeed, that protocol does not define titles for either origin nor for the destination.

Similar Threads

  1. how to create a route between two geo locations in html5 here maps
    By amjad_hunzai in forum [Archived] MH5: Nokia Maps Framework for mobile HTML5
    Replies: 1
    Last Post: 2013-06-16, 16:12
  2. Navigation route coordinates from Nokia Maps or Ovi Maps
    By selimsolmaz in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-03-04, 10:02
  3. Replies: 3
    Last Post: 2010-03-03, 10:25
  4. route and record route on 3rd edition
    By jcaradec in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-04-16, 19:07
  5. Record-Route and Route at SIP
    By mhappenhofer in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-11-30, 09:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×