I want to make app without use of GPS, and my app is using user's address. so for that i want any idea of getting address without GPS. I want address, not latitude and longitude. Geocoder can be use for getting address but its again using GPS. Please provide solution for my question.
without GPS you can not find address
Get the user to manually enter their address. or bite the bullet and use geo-coding.
EDIT:
you have 2 choices:
1) Use lat/lon and geo - coding to determine the address
or
2) User manually enters either lat/lon or address (which will not go down well)
1) You can get IP address by either $_SERVER['REMOTE_ADDR'] in PHP or using some external JavaScript application, and then pass it to some API like freegeoip and then pass received coordinates to Google. It's quite easy, but it's not reliable solution - it can be very accurate or totally inaccurate.
2) (preferred, but needs permission) You can ask user for with HTML5 Geolocation for his location and it's much more accurate (and then pass it to Google Reverse Geocoding)
Related
A message should display when I'm entering a specific address except address number for instance "Kristian Augusts gate
0164 Oslo".
When I walk to the address and suddenly my gps phone discover that I am located at "Kristian Augusts gate 0164 Oslo" then message should display
How do you create such a functionality? Any advice or tutorial?
Thank you!
First, you need to use a GPS service. You can either do it using Android API or Google Play Services API. The latter is a little more complicated and resource-intensive, but will provide more reliable location methods and callbacks.
Get location using Google Play Services
Then, when you already have the longitude and latitude you can easily get the address associated with that coordinates.
Get address from coordinates
Then you simply check if the current address is the same as the address intended to trigger the message and display it, using an AlertDialog, Toast, system notification or whichever method you need.
My question is to get location while having no internet and GPS off, is there any way?
Please don't give ans about GPSTracker class etc.. I used it..
Please give logical answer only.
no "NETWORK_PROVIDER" and no "GPS_PROVIDER"
is that possible?
I think its not possible, Itried a lot. I didn't found solutions...
Sorry if I am wrong.. Its my opinion.
There is company called IP2Location which maintains a number of databases which can convert an IP address into country, state, city, latitude, and longitude. Have a look at the following link:
http://www.ip2location.com/databases/db5-ip-country-region-city-latitude-longitude
This database can be useful if you need to get a user's location but you can't assume that he will be able to access either GPS or a web service.
I suggest try to use Google Maps Geolocation Api
you need POST a request, the the service will return a location with accuracy in meters.
Is it possible to get location of the caller when get a call? If so provide some links to achieve it. Thanks in advance..
Edit: OR else how to get at-least approximate location or lastly State name of the incoming number.
No. That data isn't carried over the phone call in the metadata, and there's no data connection in a phone call. Nor does it make sense for it to be sent- that['s a security nightmare. How would you like it if your worst enemy could find out where you are at any time just by calling you? Or a pedo could find a child's location by calling their phone? Or a rapist a woman's location by calling her? It's a bad idea. If you want to share your location with someone there's a variety of apps that do that, and just about all of them allow you to restrict that knowledge so you have some security. Use them instead.
Getting the exact location of a caller in mobile networks is theoretically impossible, due to the architecture of mobile networks.
Briefly speaking, Mobile networks divide land areas into "Hives", which determines a closed ploygon. The shape of the polygon is normally a hexagon which is adjacent to other hexagons. These hexagons are covered by BTS towers, which are responsible for responding to call requests, routing and call hand-over.
Some but not all providers enable their BTS to report their GPS coordinates and the database of all these coordinates is some kind of confidential data.
Again some but not all providers, make their databse of BTS towers available , which depends on the host country regulations and the provider company policies.
However there are databases on the web, which gather this coordinates of different providers but since the data is not gathered or distributed in an online and timely fashion, there may be complications, let alone the web service you need to use for querying which normally is not provided.
But since I assume you're in India, you may find this website useful.
EDIT
After googling , I found these websites that provide Cell-ID databses.
https://unwiredlabs.com/2
http://location-api.com/
http://www.opencellid.org/
https://wigle.net/
http://cellspotting.com/webpages/cellspotting.html
http://www.cellmapper.net/
http://www.opencelldb.net/
I have an idea of making an app in that truck drivers are there with GPS,SO they will get latitude longitude without internet,there will be an admin panel which can track the truck driver's location and location history,So My question is that the truck drivers will only having a GPS enabled Android device (WITHOUT INTERNET),SO how can the admin will track their location? Please suggest me for it .
I suppose you could try SMS messages, though, it might become rather expensive if the re-fresh rate for the location is high.
In simplest solution you would have a mobile device (you need to find one which incoming SMS you can fetch to the PC, might require some internet searching time) with normal number for receiving the SMS messages, or you could see whether you could get Operator service numbers (see whether using free-to-send number would be cheaper) and then get the data from the operator.
So I know next to nothing about GPS and Apps, but I do want to get my feet wet and have a (simple-ish in my mind) idea for a simple app based on GPS or manual address.
I basically need to know if you can do something like this
if GPS Location is (11.111/22.222) { Show(**THIS STUFF**) }
or if manual address is (555 Main St, Salem, OR) { Show(**THIS STUFF**)}
in android or iphone
You can. It's considerably more complex than that. And there are apps for both platforms that do exactly that. A quick search of Google, Apple Store, and Android Market will tell you what the current apps for that are.
If you want to do this yourself you will need to learn some new concepts. Geofencing (geographic buffers). Geolocation (address to coordinate conversion). And read up on how to efficiently use the location services provided by the devices you are writing for.
You should use android location api for GPS Location, and check in the onLocationChanged() method : if(myLocation.getLatitude==11.111 && mylocation.getLongitude==22.222)
On manual adress You should use android maps api.