How to check if our location is near a petrol pump? [closed] - android

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am creating an android app to detect the nearest petrol pumps. Can anybody help about how I should go about this?

You're going to want to look into geolocation to retrieve longitude/latitude based on where you are, and records you hold in a database (either on the device or online, read by the device at run time). You'll need geocoding on your database in order to convert physical addresses to lng/lat. This assumes you have a database of pump locations.
Some links on geolocation: Android GEO Location Tutorial
Geocoding: http://www.wikihow.com/Geocode-an-Address-in-Google-Maps-Javascript
Finally, you'll want to display pumps within a certain radius, which is mathematical: http://andrew.hedges.name/experiments/haversine/
If you're using MySQL to do this, use this query and modify for your needs: Fastest Way to Find Distance Between Two Lat/Long Points
That should give you the basics of what you'll need to implement. To get it all working together in theory shouldn't be too difficult, as identifying pumps in your database will be a case of supplying the lng/lat of current location, plus distance and pulling out/displaying results.

Related

Obtaining speed limit data of roads and be able to use this data on an android phone? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Companies like Google and Garmin have a database of all speed limits of each road that they use on their GPS software. I would like to access and use this information. How would I go about doing that?
These companies either purchased, licensed or built their own map data, of which this information is part.
You might have some success with OpenStreetMap. YMMV.
Google has an API for road data. See this link: https://developers.google.com/maps/documentation/roads/speed-limits
I don't find it very accurate. Speed limit data can be updated via their Map Maker tool. Some of it may be gleaned off of the street view cameras, but not 100% sure that is how they collect it.
I'm also interested in learning Garmin's source for the data. I hear it is just as bad. Does Garmin have a similar API?

How to find the mobile current location without using gprs? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have created an android application, in which i have to find the current location of the mobile. For example using my application i have to find my friends current location.If i enter the mobile number the current location of my friend has to be shown in map.Its not necessary that my friend mobile to be smart phone. How can i track them using their phone number without using GPRS? Please help me.
You can get Location if you have Internet Connection(GPRS or WIFI), otherwise you Can not get Location, Because to get Location, your Phone need to communicate with (Google Maps) and then they get your Longitude/Latitude and then give you the facility.
If you need to check your Friend's Location, for that you need your Friend Latitude/longitude Information.
But you must have Internet Connection.

GPS Location - Do it on Device or on Server? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
This will be for an Android Application, but the idea itself can be applied to anything.
I want my app to find the location of the user, and then check to see if the user's location is on a set list of locations.
The list is currently stored on a web server, and is in the format of -
Suburb - Street
So I currently have the following options -
Have the Android Device get the GPS Location of the device, do a lookup to get the current Suburb and Street, and check it against the list on the server
Have the Android Device get the GPS Location of the device, do a lookup to get the current Suburb and Street, retrieve the list from the server, and check the list locally.
Have the Android Device get the GPS Location, send the location to the server, and the server does the lookup to get suburb and street to check against the list, and then send a response back.
Which would be the most efficient way of doing things, both in terms of maintenance, as well as bandwidth wise ?
Also, if there are other methods of achieving the same goal, I would be happy to be made aware of them !
as building a Distributed System of 3-tier Architecture. it recommends that you let the Application server which is your server in your case. to handle the processing to reduce the Latency.
so the android application should be the interface only where the user uses to communicate with the server and all the processing should be handled in the server.
So for me I'd choose the third choice.
for more about 3-tier architecture please read this
hope this helped you answer your question. good luck with your application.

Android indoor augmented reality [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am pretty new to Augmented Reality so I don't understand something. i.e. I want to create an app that I will give to users at my store [hypothetical]. Whenever they are in my store the app should show info for different sections of the store [i.e. 'this is the tools section' or 'this is the gardening section'].
What is necessary to recognize indoor locations on Android and is in this case an Augmented Reality implementation the only possible solution ? Not sure if GPS coordinates are registered indoor precisely nor whether they'll be registered on that small 'distance' at all..
Have you heard of LLA markers? (Latitude,Longitude, Altitude Markers). They're more accurate than GPS for indoor tracking, but there are limitations (i.e show locations statically... it won't tell you you're 36 , 35 ,34 meters away as you walk towards something).
I would say that Bluetooth beacons is the best way to go. You can also use the strength of WiFi signals but that is vary coarse.

find users with gps [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to create an application that will show me on a map to all users who have installed my app within x distance.
It wondered if I need to save the coordinates of each user periodically in a database and read the position or is there another option
Tracking the user's location in a database will likely be your easiest option. It will also scale well. If you are only tracking a couple users, you could use another simpler data storage mechanism like an XML file, a text file, or even some sort of Application Level Variable.
I'm sure that you have done some research on how best to track your users, but this is a pretty good starting point, if you don't have one already. They are storing each location in a local database on the phone, so I'm sure that you could very easily modify it to send that same location to a web service or something.

Categories

Resources