I want to develop a mobile app with Google map javascript API, and it needs to support offline mode, so users can view map without internet connected.
So is it possible to cache google map javascript API(.js file) and map data?
If so, would you please give me some advice ?
Thank you in advance.
No caching or storage. You will not pre-fetch, cache, index, or store any Content to be used outside the Service, except that you may store limited amounts of Content solely for the purpose of improving the performance of your Maps API Implementation due to network latency (and not for the purpose of preventing Google from accurately tracking usage), and only if such storage:
Source: https://developers.google.com/maps/terms#section_10_5
Related
I'm trying to build a website to track my run distance, (have this working) while also tracking the path I take (like google maps when getting directions).
I'm not worried about storing it in a database yet, but if this is required to get the movement to be tracked on a map then I will.
I've looked at Google and see they have asset tracking, also Runtastic (but this doesn't appear to have an API). Also checked pubnub (but it doesn't seem to map the track)
I'm wanting to do it with HTML5 so that it runs in a browser. Has anyone managed to get this working and could share a guide on how to do it? (spent hours looking)
OwnTracks might do the job as backend for storing and managing your recorded tracks.
Is is possible to leverage Google analytics code to get browser and devices data. Want to add this data to anonymous feedback widget.
We already use classic GA tracking so thought it might be an option to reuse whatever method they use for recording browser, os, device etc that's available in GA reports.
Basically every browser is a code that is scraping data from a website. If it can, you can too.
https://developers.google.com/analytics/devguides/reporting/
Scraping Real Time Visitors from Google Analytics
I recommend you use Google Analytics APIs for this purpose.
These are a few links that can help you.
I have a small and low key website what features Google Maps using the v3 Javascript API.
Not that I am expecting to get over 25,000 loads per day, but how does Google detect people loading the map on my site? My site uses the the following code http://maps.google.com/maps/api/js?sensor=false without any API key, and as it is rendered in the clients browser, how does Google relate it to my site?
Is the loads worked out through the http headers/referrers or are the loads based on how many times each client/IP loads the map?
In essence, the code for the map is rendered on my clients/users browsers and thus how do Google know how many people are using the map on my site?
Finally; although I have Google web master tools; is it worth creating & using a API key, or will it just make it possible for Google to track how many people are using the map on my site and thus apply the limit of 25,000?
The API sends a request to google which contains the URI of the page that contains the map(when you inspect the network-traffic inside the dev-tools you'll see a request to https://maps.googleapis.com/maps/api/js/QuotaService.RecordEvent ) . This request will be sended when a Maps-instance has been created successfully.
The benefit of using a key: google is able to contact you when there are issues(e.g. may send a notice when you have reached any limits and give you a chance to react/solve the issue before they restrict the API-access for your domain/account).
I'm working on an Android app that needs to be able to display information on Google maps.
I'm considering two ways of implementing this:
Use the Google maps api provided for android with the MapActivity class
Or I could use the javascript google maps api and view the map data on my phone through a WebView rather than using a MapView.
Would anyone be able to list any advantages/disadvantages of these methods?
Would the WebView be as responsive as the Android Google Maps app?
Thanks heaps
I won't go far to conclude which is the best, but still these are things that I encountered upon trying for both approach.
Customizable:
Web View: requires you to have a web server (or at least one html page) as basis for your custom overlay via js (or perhaps you can directly draw the overlay over the WebView but having consequences to face nightmare of projecting the geoposition with the screen position)
GMap API: overlay is drawn directly over the MapView.
Download time:
Web View: when one write an html page for mobile view, s/he should consider the varying capability of downloading speed. If you carefully write the html page to fit for mobile download then it should be fine.
GMap API: the data transferred is already managed by the API and should be already in effective and minimum way.
Current Issues:
Web View: can fit to fragment mindset of Android programming
GMap API: no news so far I heard of, hopefully they're working on it. Since fragment is the new standard.
Cheers.
I would like to create a Web App for device. For that I would have some script being stored on device, instead of downloading them all time when I start application. As far as I saw including a GoogleMaps API makes some additional request for javascript files. Is there any way of having all of them taken directly from local store? Or is this always have to refeer to google web address? Thanks for any answers here!
No, you always must load them from the Google site. They offer no way to run Google Maps locally. The GMaps scripts are generated on the fly, based upon (among others, I'm sure) the HTTP_REFERER header of the request. That's how they can bind an API key to a specific website.