mobile app getting location via WiFi or 4G - mobile

I have a mobile application that need geo location data.
Mobile app can be used indoor or outdoor. For outdoor,
there's GPS signals which works great.
For indoor, I am getting geo location data on and off.
Sometimes the data is good, sometimes it is not. Other times,
I don't get any geo data. The geo data must be coming from either 4G or Wifi
but I do not understand how that works why is it not consistent.
Can anyone share your knowledge about indoor geo location data from
from 4G/WiFi? I am planning to cache the last known location but
if there's geo data that I can fetch when I am indoor, I won't need to do
any caching.
thanks

Related

All GA4 traffic shows as 'direct' traffic

Dear Stackoverflowers,
For some reason my GA4 and tag manager only show that traffic from the 'leads' is coming from 'Direct' traffic which is impossible because we are reaching the traffic through advertisements.
I have attached 2 images of what GA4 tracking actually shows about the visitors and that most of our traffic is not 'Direct'. For some reason it does not connect the data about 'Paid advertisement' or 'Social advertisement' on the Google Analytics Property.
What am I doing wrong on the 'Leads'? Shouldn't Google be automatically able to trace this type of data since it actually shows correctly on visitors data?
Thanks in advance,

Universal Google Analytics on/off line syncing

we have a angularjs app and we want to track the android users way of using it in the fields. This app can be used for 2-3 days off-line and sync opportunistically when wi-fi connections or 3g-4g are available.
Our goal is to track user behaviour with UA and cache usage data to send at first wifi opportunity.
Does UA have a built-in support for this?
if not
Can we do this programatically using v3 apis? ie. cache data locally and use a service to sync the data if online?
In either case, how much data can UA cache?
How many days can the data stay cached locally before syncing?
Cheers,
T
While UA has support for this the support does not extend to multiple days - according to the parameter reference for the measurement protocol (which is the basis for UA) "queue time" is four hours at max.
Using the API (which is built on top of the measurement protocol) will not change that.

I want to point exact location of an IP address on Google maps

I want to point exact location of an IP address on Google Maps or any other service. I want the marker to be exact. How can I do it, using which service, either at cost or free of cost?
Just to make the answer official, no geo-location service can reliably provide that kind of accuracy. You can be reasonably sure of the city/town and that's about it... assuming no deliberate attempt to hide their location like VPN, TOR, etc.
If your users are cooperating, then you could build your own geo-location service that, for example, uses GPS from a phone when it is connected through a WiFi router and reports that back to your service.
fecth geolocations tags and youre good to go

What data does Bing maps send and receive from the Microsoft servers?

I have a Bing Maps control in a silverlight application.
The application is to be deployed on a company network which has a very tight security policy and so they need to know what data is going to be sent/recieved over the connection to the Microsoft servers.
Can anyone point me in the right direction with regards to data connections etc. I understand that the control sends a licence and recieves map tiles but I don't know how.
The only data that gets sent from the Bing Maps control to Bing's servers is your application key, which is used to log a transaction recording the start of your session. This is done by a call to the service at http://dev.virtualearth.net/webservices/v1/LoggingService/LoggingService.svc. The service sends back an authentication result code and a session id which is assigned for the rest of the session.
In terms of data received from Bing's servers to the Map Control - if you use one of the built-in map styles (aerial/road etc.), then the tile images are requested from one of the tile servers in the edge caching network, which have URLs as follows:
http://ecn.t0.tiles.virtualearth.net
http://ecn.t1.tiles.virtualearth.net
http://ecn.t2.tiles.virtualearth.net
http://ecn.t3.tiles.virtualearth.net
That's it. If you load a tile layer from a local tile source then no content gets transferred from Bing. Nothing ever gets sent to Microsoft relating to any shapes or other data plotted on the map.

Get position data from mobile browser

I am developing a web app that will be hit frequently by mobile browsers. I am wondering if there is a way to get enough information from the browser request to lookup position data (triangulation or GPS) Not from the request directly, of course. A colleague suggested there some carriers supply a unique identifier in the request header that can be sent to a web service exposed by said provider that will return position data if the customer has enabled that. Can anyone point me in the right direction for this or any other method for gleaning position data, even very approximate. Obviously this is app candy, e.g. if the data is not available the app doesn't really care...
Or perhaps a web service by carrier that will provide triangulated data by IP?
Google has ClientLocation as part of their AJAX APIs. You'll need to load Google's AJAX API (requires an API key) and it'll try to resolve the user's location data for you.
I've got blackberry gps to javascript working OK in a GMaps mashup. Pretty simple, actually. http://www.saefern.org/tickets/test4.php -- help yrself to view source.
(I don't currently have a bb. A user emailed me with "... it seems to be polling every 15 seconds or so, so it keeps adding new locations ... ".)
I'm looking for javascript gps info on an iPhone equivalent. And Nokia, and ... .
Any information appreciated.
I have used this javascript library sucessfully:
http://code.google.com/p/geo-location-javascript/
The examples work great. The user will always be prompted to share their location--don't know a way to avoid that.
Use the source IP address to approximate a network location. No, you won't get latitude and longitude in an HTTP request from an iPhone. Not unless you write a 3rd party app and ask them to run it.
You might be better off just running a poll on your website.
I know that some providers in Japan have a tracking service for location of cellphones.
I also know that the information is not public. I think you need to have a very good reason before the provider gives that information free as it is in my opinion sensitive personal data. Of course they will give the information to police officers but not to the general public.

Resources