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

  • SEARCH
  • Home
  • 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 8757379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:17:15+00:00 2026-06-13T14:17:15+00:00

I want to make an application in android. In this app user have to

  • 0

I want to make an application in android. In this app user have to register in this app. With the registration the gps location(lat and long) will store in database table with user info. In this app i want to add a functionality that is “Search People who are in Root”. User can input starting point and ending point(like : Mumbai to Delhi). And every peoples between this two point want to be found.

For Example : User-A have newly registered in this app. User-A’s gps location is like lat = 20.234554 and long = 56.21455255. Now he will input two point like mumbai to delhi and click search button. Now i want to query in the database where every peoples information has been already stored. I want to query in database that “Select * from Location(Table) where peoples between mumbai to delhi”

Database table “locations” has four field id, lat, long and cityname. Now i want the above query on the database where i can find the people those are between the two inputted geo points.

Hope i have explained well that you understand what i want to achieve is only that i want to just search which are the nearby locations(lat and long) from the database table with inputted location(lat and long).

  • 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-06-13T14:17:17+00:00Added an answer on June 13, 2026 at 2:17 pm

    I would suggest to limit your location by some conditions which can be indexed. You can do that easily as you probably don’t want to list somebody from the US to somebody in Paris as nearest location.

    With just a bit modification on RustamIS query you can eliminate the most of the irrelevant locations.

    select * from gps_location_table t 
    where
        t.x between 20.134554 and 20.334554 and t.y between 56.11455255 and 56.31455255
    order by 
        sqrt((t.x - 20.234554)*(t.x - 20.234554) + (t.y - 56.21455255)*(t.y - 56.21455255)
    desc
    

    So you defined a rectangle where you want to look for the nearest people.

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

Sidebar

Related Questions

Background: I have started Android recently. I want to make an application for Android
In my android application i want to make a feedback dialog that will show
I want to make an application for Android 2.2+, utilizing the GPS. Basically I
I want to make an android application that shows a listing of applications (downloaded
i want to make a splash screen on my android application, i use phonegap.
I want to make some changes to the stock Mms Android application and install
We are designing a new application for Android and we want to make it
I want make interactive application where user launches it and can do various task
I want to make my application similar to mail.app in vertical orientation. It should
I want to make an application that would display a message when a user

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.