How to track geolocation in html5 without prompting geo location sharing - html

Short:How to track geolocation in html5 without prompting geo location sharing
Long: i wanna develop a website which tracking user location with out user prompting, is any way (like can i use phone gap for gps co-ordinates)

The geolocation warning is shown by the browser before sharing the location. This is a security measure and cannot be bypassed.
You could, however, get an approximate (and sometimes very inaccurate) location from the IP address using an API. There are many available, just try searching online.

Related

Is there a platform agnostic HTML5 map service?

I have a Blazor combined client/server side app that uses HTML5 geolocation to return the user device latitude/longitude. I'd like to be able to provide the general "area" the user is in - a bit of a confirmation to the user the thing is working; and someday potentially enable the user to get lat/long for other locations as well. I have not been able to find a native HTML5 map service to go along with its geolocation capabilities, and in fact nearly every search leads to how to connect to Google Maps. I'm using Blazor, though, because I want the app to run and function on essentially every browser, so want to avoid Google Maps or Apple Maps, etc. I also checked quick on GitHub for potential API solutions but didn't see any. Ideas? Thanks!

Questions on Instagram API changes for use with Swift 3. Latitude and Longitude, search by #hastag

I'm updating an older Instagram Swift app. I'm now in Sandbox mode, and only able to access my own last 20 images, kind of in the dark on how this will work in the real-word.
If I OAuth2 a user, can they then search by any hash tag?
I'm not seeing any latitude or longitude values for my images in the sandbox, in the past, could easily get to that JSON data. Is that still possible or this is just a "Sandbox" limitation and will be able to access those values in the live app?
Example of what I like my Swift App to do:
A user wants to search by a any hash tag, lets say #paris. That will return a array of images tagged #paris. They then can click an image, and the location (latitude and longitude) will be available, would like to display the location of the image with a pin on an Apple map. All this was super easy to do before the "Sandbox" feature was turned on.
Are these features still available with the latest Instagram changes to their API? I'm assuming they want developers to spread the world, and not flee to Snapchat.
thanks for input. :-)
In Instagram sandbox mode, you can only access up to 10 authorized sandbox users. To add authorized sandbox users, you'll have to invite them to your app and they will have to accept the invitation.
You can always request any endpoint when using this sandbox mode, but it will only resulted in 20 recent media of each authorized sandbox users. That is also the reason why you can only access your 20 last images.
I can't answer for your disappearance of lat and long data. It should give the data nonetheless.
source: https://www.instagram.com/developer/sandbox/

How does google map location works?

My question is how does google map or mobile GPS able to find mine current location ?
My high level understanding after reading this article is , GPS receiver gets the location coordinates through these satellites
and this location is further passed to Google Map(or any other client) API which then locates the exact location on map. Is it correct ?
Somewhere i also read that Mobile towers also plays the role. But my unserstanding is that this can be used to track the mobile location if required but mobile apps or Google maps
uses the satellite approach. Right ?
It's a bit inaccurate question to ask "How does google map location works", because Google Maps app (as well as any application leveraging google maps API) is just a consumer of location services on your device and is not used to determine the current location itself.
Because Google Maps is just an application, it can be run inside browser, or as native application. Depending on that, the way how it gets to your location information may also vary.
If you run the Google Maps from web browser (or WebView, or UIWebView,..) it usually uses HTML 5 geolocation API to determine your location and then use that to show your position on Google Maps. HTML5 geolocation then uses some lower level services to get your location, like GPS sensor, WIFI, network etc. There are already questions on how HTML 5 geolocation determines your position on SO, like this one or this one.
If your app is run as standalone application, it depends on your platform, your device sensors, your network,.. how the location is determined. So for example on Android with GPS sensor, LocationManager is used, which retrieves the location again using GPS, or from network provider, or returns last known location, etc. There's a lot of various interesting techniques behind this, which you can look up yourself (For example to determine your location using Wifi, Google has a database of WIFI SSIDs and their locations retrieved using anonymous device tracking and is able to roughly tell your location only from Wifi networks around you.)

HTML5 Geolocation API to Obtain WiFi AC Information?

I am trying to create an application in HTML5 that attempts to determine a list of Wifi access points in range of the user's device. I've done some research and discovered that Google's geolocation API sends a
"computer’s IP address and a collection of information of [its]
surrounding Wi-Fi access points to their default location service
provider (e.g., Google Location Services..."
I have yet to find, however, any resources that look into if the possibility of obtaining information such as SSID, MAC address, etc for a developer using the API. Is this possible, and if so, could you redirect me to another source or explain how to retrieve them? Even the documentation for the API does not specify how to retrieve the information that Google uses to determine geolocation. Any help is appreciated. Thank you.
Article for above quote
As far as I know, there is no public API to retrieve the SSID, MAC address in HTML5. It is being implemented inside the browser to pass it to the location service provider.
You can only get the information unless you wrote your own native application.

How to get client's Geolocation (Latitude & Longitude) extremely QUICKLY?

I am using Google Map's ClientLocation to retrieve the users geolocation (via their IP address). This is very slow because you first have to download and then load Google Maps, before it can even begin to geolocate the users IP address.
Then I came across http://fwix.com/. They are doing exactly what I want, but super fast without having to use Google Maps ClientLocation.
It appears they are generating the HTML page on the fly and injecting the latitude and longitude into the META area of the HTML.
Just view the source for fwix.com and you'll see something like:
<meta name="geo_lat" content="12.34567" />
<meta name="geo_lng" content="-98.76543" />
Questions:
How does fwix doing this?
What is the quickest way for me to retrieve a users geolocation (lat/lng) without having to load the entire Google Maps API? Meaning, if there a web service I can call programically that will simply return the users geolocation (lat/lng)?
You don't need any interaction from the client (besides their initial request, which reveals their IP address to the server) to locate them by their IP address.
Geolocation via IP is all done on the server side, and this can be quickly relayed to the client. If you experience slow loading, that's because your browser is loading something else.