Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6919431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:59:20+00:00 2026-05-27T09:59:20+00:00

Hi I’m writing an Android lbs game, I need to: store user’s real time

  • 0

Hi I’m writing an Android lbs game, I need to:

  • store user’s real time position(lat, lon)

  • get users that are near to a given position

I’ve wrote some back-end api with django and mysql(for example, get user name and age by his id).

what’s the best solution to do what I said above (with django/python)?
Should I use a nosql database like redis?
And how should the positions be stored in database so I can quickly get positions that is near to a given position?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:59:21+00:00Added an answer on May 27, 2026 at 9:59 am

    Well, I am a enthusiast of Redis, but considering your specific problem, there is a NoSQL database engine that better supports geospatial queries: MongoDB.

    I have never used MongoDB, but in conferences I’ve seen people talking about this feature: http://www.mongodb.org/display/DOCS/Geospatial+Indexing

    I read through it carefully now, and focused on these main points:

    • The geospatial index has to be mantained for every insert in the database (i.e. generated again), which differs from Redis, where there is no such thing as an index (sorted sets in Redis “could” solve your problem, but again it would be a lot more work);
    • You will use find and/or geoNear queries in MongoDB;
    • For combined querying with other indices, you have to specify and combine all indices at creation time;
    • Distance can be measured considering Earth curvature in geoNear (with the spherical attribute). If this attribute is not used (or find is), the distance is converted from a fixed value of miles per arcdegree.

    Also a curiosity: the “logo” in the Stack overflow NoSql tag is from MongoDB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I am writing an app with both english and french support. The app requests
I have thousands of HTML files to process using Groovy/Java and I need to
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.