HTML5 Geolocation API to Obtain WiFi AC Information? - html

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.

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!

Website Restrict Google Maps API key dynamicly via SDK

my question: Is there any Google API / SDK I can use to be able to dynamically add "HTTP referrers (web sites)" (assign domains) to maps API key ?
Background
I'm building a web-application portal that will allow anyone to create a business website and assign a custom domain to it.
On that generated website customer will have google maps map pointing to address of their business.
Customer has an option to add custom domain to their business website created by my web-application (by CNAME to the my web-application)
Desired feature is that once the domain background job will get triggered that will add that domain/host to list of restricted domains/hosts for my Google Maps Api key so that their domain will be able to read google maps on their domanin
note: I Have cron job DNS lookup validation check implemented to ensure that domain is really assigned to the domain
live example
here is website generated by customer on my web-application http://sbs-sos.sajtka.sk/ he assigned a domain and pointed CNAME http://sbs-sos.sk/
Reason why the google map works is because I manually white-listed their domain. I need to automate this
please aware portal is not fully launched so many bugs are happening
The feature request to manage API keys restrictions via SDK was submitted in Google issue tracker in 2016:
https://issuetracker.google.com/issues/35829646
Currently, there are no any official SDK for that. However, the last update from Google says that they released experimental API to programmatically manage your API Keys and their restrictions.
The best way to handle thousands of authorized domains is to use an API to programmatically manage your API Keys and their restrictions, and we have recently launched a new service that allows you to do this.
This API is still in Alpha. If you are interested in becoming a Trusted Tester for this service, you can use the following form to sign up, please read the instructions carefully:
https://forms.gle/qx2SMcarWCAsbWVp7
Please note that this API is not part of the Google Maps Platform. After you fill out the form, you will be contacted by the API Keys API team with instructions on how to get started, and how to receive support.
API Keys API is currently free of charge. However, please note that use of Cloud Endpoints may be subject to charges at high traffic volume. You can check the pricing sheet here:
https://cloud.google.com/endpoints/pricing-and-quotas
I would suggest joining Trusted Tester program and try out this API.
I hope this helps!

Accessing Google Maps URL outside the Javascript API

I have a web app and have successfully configured it to access google maps from this URL outside the JavaScript API using this URL:
http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga
The app uses the imagery as background in a PDF report that members of the public can download - this is going to be a free service.
I contacted Google Maps support to ask them if this was allowed under their Terms of Services Agreement but they have referred me to here.
Could I please get an answer as to whether this is allowed or whether I need to enter into a licensing agreement or subscription - and if so what kind? Or alternatively refer me to where I am best to direct this inquiry.
There must be a miscommunication with regards to your concern when you reached out to the support team of the Google Maps Platform API, I would highly recommend that you file another support case via https://console.cloud.google.com/google/maps-apis/support as only the support team of the Google Maps Platform can share more knowledge about your concern as this will require internal investigation as well.

How to Know Geolocation of Client who are using my web application?

I have one web application. I have to know the Geolocation(Longitude & Latitude) of Clients who are using my web application? As per my understanding, I can do it using Html5 Geolocation Apis. But the problem in this scenario is this that it requires client permission. So is there any way I can do it without client permission?
Please let me know if my understanding is wrong about Html5 Geolocation Apis.
Thanks,
Gopal Lal
I have copied this answer from Michael C. from this question.
"Based on http://www.geolocation.com, there is another way to determine the geolocation other than HTML5.
You can load a local database to query geolocation by IP address. No user intervene required because the web server can retrieve the IP address in every connection.
If you are looking for ZIP code information, then there is at least one vendor available immediately in the market. You can visit http://www.ip2location.com (DB9)."
Have you tried the Google Geocoding API? Its pretty much useful and accurate as well.
Also, you can use the Google Maps API for the same purpose. Refer to an example here.
I'm not sure if I understand 100% your question but for geo location ip tracks for web you can use Google Analytics and give you all information you need.

Access Denied when attempting to use Google Maps Geocoding Service with a Console API Key

UPDATE: In an effort to give a more clear question. How do I use the Google Console API key with the Google Maps Geocoding Web Service API? At the moment the request comes back as denied, when I specify the key but even though it failed it is logged in the Google Console API site's reports section.
Original Question
I have an existing app that has been modified to start geocoding address at the time they are entered (for use within the app on a Google Map). The volume expected for this is expcted to be within the free offering's limites and does not require a key at this time. However now I have to geocode all of the existing addresses. I have a small windows app (C#) that will loop through them one at a time, request they be geocoded (via https://maps.googleapis.com/maps/api/geocode/json) and store the results in the database. However I keep running into the query limit. To help alleviate this I've setup an account on Google API Console (https://code.google.com/apis/console/) so that I get go over the limit and just be billed for the overages.
The problem is in order to do utilize this billing alternative I have to provide a Console API Key to the request, but every time I do so I get a response back with a status of REQUEST_DENIED.
My URL looks like this
https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA+94043&sensor=false&key=123abc
If I take off the key it works fine, but with it on it fails. Now, I have seen other questions similar to this when looking around but can find no answer to the issue.
I've tried various alternate domains including maps.google.com, maps.googleapis.com and maps-api-ssl.google.com all seem to have the same problem from what I can tell.
Here's what I've been able to find out so far:
The service is listed in the Google Console API's site as Google Maps API v3, (there is a separate entry for v2) so I don't think it's a problem with keys no longer being mandatory in v3.
I know the requests are getting through and being correctly logged against this API key because with each failed attempt the request count goes up by one on the Reports tab of the Google APIs Console.
*I know it's not a problem with it not being accessed via a web page because the Console API explicitly lets you generates keys intended for Server/Service use and you can restrict access to them via IP address, not URL Referrer.
*I've also verified the parameter syntax as it's outlined on this page, as are other usage
*These seem to be generic to the Console API system but there is no mention of exceptions to these practices when used for the Google Maps API.
I even tried to contact Google but apparently they don't offer support over the phone (I was hoping to be done with this today but that's not looking likely).
It seems the key is not necessary anymore, since it doesn't increase your limit of free geocodings.
It was a legacy of v2, but geocoding API v2 was fully deprecated last March, 8.
If you need to use more than the free limit, I think you must adquire the Enterprise license.
Regards,
Eduardo.
I ran into this same issue and solved it by enabling the Geocoding API on the Google apis dashboard. Even though I'm using the Google Maps JavaScript API v3, it still required me to enable the Geocoding API as well. Make sure you understand the google's quota limits and billing system before enabling any API access. Hope this helps!
Late to this answer, but just in case anyone else has issue. Billing needs to be setup first and like Dylan said you also have to enable Geocoding API(this got me). At least I did for my locations app that shows multiple store location addresses.