×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    259

    Post Google Maps on S60 with Location API

    I downloaded the source code on how to display Google Maps on S60 with Location API from the link
    http://wiki.forum.nokia.com/index.ph...Api_in_Symbian
    But my question is where do I have to use the Google Maps API Key in the source code

    And I am getting the following errors

    the file LBSSample.rsg cannot be opened
    undefined identifier R_GPS_REQUEST_POSITION_WAIT_NOTE
    the file HTTPClientExample.rsg cannot be opened
    undefined identifier R_HTTP_TX_CANCELLED
    undefined identifier R_HTTP_MHFRUN_ERROR
    undefined identifier R_HTTP_AUTH_NOTE
    undefined identifier R_HTTP_AUTH_REQUIRED
    undefined identifier R_DIALOG_USER_PASSWORD_QUERY


    Am i getting the errors because of this API Key?

  2. #2
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: Google Maps on S60 with Location API

    Did you read the article?

    Pre-requisites

    Before using this example, compile the example of HttpClientEngine

    http://www.forum.nokia.com/info/sw.n...I_Example.html

    and then the author as mentioned

    1. include <LBSSample_0xE1038E0E.rsg>

    replace it with

    1. include <LBSSample.rsg>

    will compile the example properly.

    ...

    Signup For google Maps key

    NOTE: Usage of this code with the free Google Maps API Key breaks Google's Terms and Conditions (section 10.8). You should purchase an Enterprise License if you wish to use the Google Maps API as shown in this example.

    This is quite simple, just go to the following site and register providing a URL but only after login with a gmail account

    http://code.google.com/apis/maps/signup.html

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    259

    Re: Google Maps on S60 with Location API

    Quote Originally Posted by A.A.M. View Post
    Did you read the article?
    I tried as according to your suggesstion but am still getting these errors while compiling

    the file 'LBSSample.rsg' cannot be opened
    undefined identifier R_GPS_REQUEST_POSITION_WAIT_NOTE


    Could you please help??

  4. #4
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: Google Maps on S60 with Location API

    I've checked this example and no need to change #include <LBSSample_0xE1038E0E.rsg> to #include <LBSSample.rsg>.

    Compile HTTPClientExample first and then compile LBSSample without any modifications.

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    259

    Re: Google Maps on S60 with Location API

    Quote Originally Posted by A.A.M. View Post
    I've checked this example and no need to change #include <LBSSample_0xE1038E0E.rsg> to #include <LBSSample.rsg>.

    Compile HTTPClientExample first and then compile LBSSample without any modifications.
    Now am getting 11 errors of the sort but the error location is not mentioned

    Multiply defined section: class CGpsPositionRequest * CGpsPositionRequest::NewL(class TDesC16 const &) (?NewL@CGpsPositionRequest@@SAPAV1@ABVTDesC16@@@Z)

    Multiply defined section: int CGpsPositionRequest::FetchCurrentPostionL(double &, double &) (?FetchCurrentPostionL@CGpsPositionRequest@@QAEHAAN0@Z)

    Multiply defined section: void CGpsPositionRequest::ConstructL(class TDesC16 const &) (?ConstructL@CGpsPositionRequest@@AAEXABVTDesC16@@@Z)

    I just quoted some errors for your consideration

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Google Maps on S60 with Location API

    do check the correct example code has been uploaded http://wiki.forum.nokia.com/index.ph...Api_in_Symbian

  7. #7
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: Google Maps on S60 with Location API

    Try to clean project and then build it again.

  8. #8
    Registered User
    Join Date
    Jul 2009
    Posts
    259

    Re: Google Maps on S60 with Location API

    Quote Originally Posted by A.A.M. View Post
    Try to clean project and then build it again.
    Ya by cleaning up the project and rebuilding it worked fine without any compilation errors.
    So after running the application and selecting the GPS Map Option showed me the Default access point as Winsock.
    But then when I clicked Ok nothing is being displayed. So how to display the map?

  9. #9
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: Google Maps on S60 with Location API

    All written in the article.

    Signup For google Maps key

    NOTE: Usage of this code with the free Google Maps API Key breaks Google's Terms and Conditions (section 10.8). You should purchase an Enterprise License if you wish to use the Google Maps API as shown in this example.

    This is quite simple, just go to the following site and register providing a URL but only after login with a gmail account

    http://code.google.com/apis/maps/signup.html

    ...
    ...
    ...
    // LBSSampleAppView.cpp
    //...
    // This is my key, Signup in Google maps and create your own key
    _LIT(KGoogleMapKey,"ABQ...KwA");
    If you already have a key then set KGoogleMapKey in LBSSampleAppView.cpp.

  10. #10
    Registered User
    Join Date
    Jul 2009
    Posts
    259

    Re: Google Maps on S60 with Location API

    Quote Originally Posted by A.A.M. View Post
    All written in the article.



    If you already have a key then set KGoogleMapKey in LBSSampleAppView.cpp.
    I have previously set my KGoogleMapKey in LBSSampleAppView.cpp. And it was giving the issue which I told u in my earlier quote.

  11. #11
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: Google Maps on S60 with Location API

    Try to build corrected source code uploaded by Skumar_rao (see post #6) ( http://www.forum.nokia.com/piazza/wi..._corrected.zip ). It works correctly.

  12. #12
    Registered User
    Join Date
    Mar 2010
    Posts
    138

    Re: Google Maps on S60 with Location API

    hey everyone,i have tried this application and it works properly.
    can anyone help me updating it by marking my position on the map and display it each interval of time?
    any help will be appreciate.
    Thank you.

Similar Threads

  1. Answer incoming call silently
    By tote_b5 in forum Symbian Networking & Messaging (Closed)
    Replies: 33
    Last Post: 2011-05-25, 11:39
  2. Python for S60 1.9.0 released
    By tvijayan in forum Symbian
    Replies: 48
    Last Post: 2009-01-27, 15:39
  3. About Google Maps API
    By lysander in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2009-01-23, 13:52
  4. Google Maps API to Symbian
    By Olaris in forum Symbian
    Replies: 1
    Last Post: 2007-06-18, 18:30
  5. Location API, but no GPS
    By redsmurph in forum Mobile Java General
    Replies: 3
    Last Post: 2007-01-30, 20:59

Posting Permissions

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