GPS and Google Play Services are two parts...
You do not need a Api key for GPS
You do not need Play Services for GPS
The GPS Example from the GPS Tutorial does not use Google Maps!
http://maps.google.com/maps/api/
The GPSExample works without an API key.
To use the Google Maps JavaScript API, you must register your app project on the Google API Console and get a Google API key which you can add to your app.
NO!Yes it does.
I don't know, I have never published an app on Play Store.Or is the WebView request looking like a normal web browser request and Google does not care or know the request actually comes from an app?
To use the Google Maps JavaScript API, you must register your app project on the Google API Console and get a Google API key which you can add to your app.
Hi Manferd, Didier9 is speaking of the GPSExample which is included in the B4A User's Guide.Tell me: WHERE DO YOU SEE A GOOGLE MAP?
NO!
https://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content
Tell me: WHERE DO YOU SEE A GOOGLE MAP?
Sub MapDisp(CenterLat As Float, CenterLng As Float, MapDraggable As Boolean, Zoom As Int, MapTypeControl As Boolean, _
MapTypeControlID As String, DispZoomControl As Boolean, ZoomControlPosition As String, ZoomControlStyle As String, _
DispScaleControl As Boolean, ScaleControlPosition As String, DispMarkerCenter As Boolean, MarkerPos As List, _
DispMarkers As Boolean, MarkersClickable As Boolean, MarkersDragable As Boolean, DispPolyline As Boolean, _
PolyLineColor As String, PolyLineOpacity As Float, PolyLineWidth As Int)
' Displays a Google map in a WebView with following parameters
' Thanks go to for his WebViewExtra library allowing to add event routines
' CenterLat = latitude of map center in degrees
' CenterLng = longitude of map center in degrees
' Zoom = zomm index 0 - 21
' MapTypeControl = true displays the map type control
' MapTypeControlID = either ROADMAP, TERRAIN, SATELLITE or HYBRID
' DispZoomControl = true displays the zoom control otherwise false
' ZoomControlPosition = position of the scale control TOP_LEFT, TOP_CENTER, TOP_RIGHT, LEFT_CENTER, RIGHT_CENTER, BOTTOM_LEFT,
'BOTTOM_CENTER, BOTTOM_RIGHT
' ZoomControlStyle = style of the scale control DEFAULT, SMALL or LARGE
' ScaleControl = true displays the zoom control otherwise false
' ScaleControlPosition = position of the scale control TOP_LEFT, TOP_CENTER, TOP_RIGHT, LEFT_CENTER, RIGHT_CENTER, BOTTOM_LEFT,
' BOTTOM_CENTER, BOTTOM_RIGHT
' DispMarkerCenter = true sets a marker on the center of the map
' MarkerPos = List of GPS Locations of the markers
' DipsMarkers = true displays the markers
' MarkersClickable = the markers are clickable, doesn't work yet with WebView
' MarkersDragable = the markers are dragable, doesn't give the new postition yet with WebView
' DispPolyline = true displays a polyline with the markers as vertices
' PolyLineColor = polyline color hexadecimal #ff0000 = red #00ff00 = green #0000ff = blue
' PolyLineOpacity = polyline opacity 0.0 transparent 1.0 full opaque
' PolyLineWidth = polyline width in pixels
Private HtmlCode As String
Private i, j, n As Int
Private Pos As GPSLocation
HtmlCode = "<!DOCTYPE html><html><head><meta name='viewport' content='initial-scale=1.0, user-scalable=no' /><style type='text/css'> "
HtmlCode = HtmlCode & "html { height: 100% } body { height: 100%; margin: 0px; padding: 0px }#map_canvas "
HtmlCode = HtmlCode & "{ height: 100% }</style><script Type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'>"
src='http://maps.google.com/maps/api/js
I don't know, I have never published an app on Play Store.
When you use GoogleMaps with a browser you don't need any key.
And the WebView is similar for me, but, who knows with Google.
The GPSExample uses a WebView because when I developped it the GoogleMaps library didn't exist.
Do you know if that applies to the webview as well?As far as I know Google Maps recognises the App from it's package name and collects statistic using this feature.
Since Google has no control on web applicatives They need a key. Some year ago I had to buy a certain number of map imptessions since my web application showed a lots. If you showed more than (2000?) Maps a day the free account could block.
You got it!The advantage of registering and getting a key is that they notify you if policies change, so you have a chance to fix your app before it's broken.