Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User giapage's Avatar
    Join Date
    Feb 2008
    Posts
    47
    Hello,
    i have to develop an application to show GPS coordinates.
    The following code seems to be already working for internal GPS of N95
    Code:
    positioning.set_requestors([{"type":"service", "format":"application", "data":"test_app"}]) 
    		print "position set_req called"
    		positioning.position(course=1,satellites=1, callback=cb, interval=500000, partial=0)
    How is possible to use the same (or similiar) code for an external bluetooth antenna GPS without write a totally different code for it?
    Thank you!
    Giacomo

  2. #2
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    hi giapage
    if u want to use the external GPS reader.
    plz try this.
    hope this helps you and dont forget to give a feedback

  3. #3
    Regular Contributor miohtama's Avatar
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376
    [QUOTE=giapage;407922]Hello,
    i have to develop an application to show GPS coordinates.
    The following code seems to be already working for internal GPS of N95
    Code:
    positioning.set_requestors([{"type":"service", "format":"application", "data":"test_app"}]) 
    		print "position set_req called"
    		positioning.position(course=1,satellites=1, callback=cb, interval=500000, partial=0)
    You can choose available locationing modules in your phone settings menu. Then positioning module has a function to choose one of available modules to be used for the positioning. See PyS60 API doc. This was fixed in the latest PyS60 version.
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  4. #4
    Registered User giapage's Avatar
    Join Date
    Feb 2008
    Posts
    47
    Quote Originally Posted by miohtama View Post
    You can choose available locationing modules in your phone settings menu. Then positioning module has a function to choose one of available modules to be used for the positioning. See PyS60 API doc. This was fixed in the latest PyS60 version.
    Thank you. I found it on the settings-menu and i've selected also the GPS Bluetooth (that was not checked). How does it work now? I mean, when a call the metod:
    Code:
    positioning.set_requestors([{"type":"service", "format":"application", "data":"test_app"}])
    which position-device is used?

  5. #5
    Regular Contributor miohtama's Avatar
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376
    Quote Originally Posted by giapage View Post
    Thank you. I found it on the settings-menu and i've selected also the GPS Bluetooth (that was not checked). How does it work now? I mean, when a call the metod:
    Code:
    positioning.set_requestors([{"type":"service", "format":"application", "data":"test_app"}])
    which position-device is used?
    Please read PyS60 API doc. You need some other function.
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  6. #6
    Registered User giapage's Avatar
    Join Date
    Feb 2008
    Posts
    47
    I've already read the S60 Api.
    At the moment i have an application that works to getting GPS info like latitude, longitude and altitude.
    The problem is that if i select "Enable GPS bluetooth" from the SYstem Settings it use the GPS antenna otherwise it use the internal GPS antenna.
    When bluetooth antenna was enabled, i tried to change the default module using
    Code:
    position.select module(InternalGPSid)
    without succed.
    Isn't it correct?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved