You Are Here:

Community: Developer Discussion Boards

#1 Old location without internet connection? - 2008-12-11, 11:52

Join Date: Mar 2003
Posts: 56
albgarse
Offline
Regular Contributor
Hi!

I'm developing a geolocalization application, so I'm using the location module.
After retrieving the lac and cellid from location.gsm_location(), I know I can retrieve lat & lng from a web service or an http request to a google service.
My problem is that the phone is not going to be able to connect to Internet. Is there any way to get a database of cellids and use it locally on the phone (for a restricted area).
I don't know if this database is public or can be purschased.

Is there any othe way to get positioning info without Internet connection?

Regards.
Reply With Quote

#2 Old Re: location without internet connection? - 2008-12-11, 15:03

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by albgarse View Post
Hi!

I'm developing a geolocalization application, so I'm using the location module.
After retrieving the lac and cellid from location.gsm_location(), I know I can retrieve lat & lng from a web service or an http request to a google service.
My problem is that the phone is not going to be able to connect to Internet. Is there any way to get a database of cellids and use it locally on the phone (for a restricted area).
I don't know if this database is public or can be purschased.

Is there any othe way to get positioning info without Internet connection?

Regards.
Hi albgarse,

Maybe you can use positioning module, if you are working with phones that have built-in GPS

Or maybe if it doesn't have it built-in, you could use a bluetooth GPS.

Check the Python Library Reference page 57, which has all the information about the positioning module.



Hope it helps,

Rafael.
Reply With Quote

#3 Old Re: location without internet connection? - 2008-12-11, 15:12

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Hi albgarse

Rafael has mentioned the other way i will take your other question abt database of cellids i m sorry but there is no database like that.
We had lots of discussion earlier at the dibo a search can help you.

Best Regards


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#4 Old Re: location without internet connection? - 2008-12-12, 16:10

Join Date: Dec 2008
Posts: 13
trymukesh
Offline
Registered User
hi there,

my problem is related to yours.
i have got latitude and longitude values but i don't know how to calculate the distance between them.

i know the formula, but need the code that runs on pys60

any help will be greatly appreciated.

cheers,
M
Reply With Quote

#5 Old Re: location without internet connection? - 2008-12-14, 20:52

Join Date: Mar 2003
Posts: 56
albgarse
Offline
Regular Contributor
Hi!

It should be something like
Code:
        distance = sqrt((lat1 - lat2) ** 2 + (lng1 - lng2) ** 2) * 111.12
111.12 is a constant to translate distance to Kilometers. If you want the distance in miles, pultiply by 69.047 instead.

Regards.

where

Quote:
Originally Posted by trymukesh View Post
hi there,

my problem is related to yours.
i have got latitude and longitude values but i don't know how to calculate the distance between them.

i know the formula, but need the code that runs on pys60

any help will be greatly appreciated.

cheers,
M
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to pc internet connection with bluetooth pisciu Bluetooth Technology 1 2006-11-06 14:05
internet connection lanky Mobile Java Networking & Messaging & Security 6 2006-09-08 22:25
Select Internet Connection Types yiannis_1978 Mobile Java Networking & Messaging & Security 0 2006-04-19 15:44
Internet connection via GPRS or LAN ? anjanesh Bluetooth Technology 0 2006-04-11 06:15
sharing internet connection over bluetooth naivri Bluetooth Technology 2 2003-06-02 21:50

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia