Google map javascript api: https://developers.google.com/maps/documentation/javascript/places-autocomplete
Google places api: https://developers.google.com/places/documentation/autocomplete
They both offer seemingly the same feature, autocomplete.
Since, I am developing an webapp, I can use both, and I can't see much difference.
What are the significant differences between the two?
-- edit
There is also google maps embeded api (webservice).
How is it conceptually differ or fit in with the above two?
One is part of the javascript API, the other is a web service, intended for use server side
Related
I have a JS library which is used by some users. I am going to track some behaviours from user using the library. I tried to configure a property on Google Analytics, however, it seems I should configure a URL for a website, an ID for an ios or an Android application.
How can I use Google Analytics in my library? Or can GA be used for this purpose?
Thanks
Google Analytics is a web analytics tool. So you won't be able to track your JS library with GA.
If you Google “Google Analytics,” the description provided is as following:
Google Analytics lets you measure your advertising ROI and track your Flash, video, and social networking sites and applications.
JS libraries are not part of the use cases.
Also, Google “Track JS Library Google Analytics.” As you can see, you’ll only get references to libraries such as gtag.js or analytics.js, which will not serve your purpose of tracking your library.
And ask yourself, will people use your JS library when they know you are tracking them? I don't think so. Instead, create a repo on GitHub with documentation and allow users to report issues.
Also, create a mailing list with users and execute small surveys to understand better how people are using your JS library.
I have several simple Javascript Google maps on two websites. What is project here - each map or everything ? Or maybe maps on one website are one project ? But they have nothing to do with each other. How many projects should be created and how many credentials ? So far I created one project and so many credentials as maps in it. But these maps are separated, almost all different, only few of them generated by one common php, but even in this case half of them are completely different in the internet.
I don't understand this at all.
Thank you.
Usually you should use one API Project for each "property" which is displaying maps. If you have one website where you tracking popular fishing spots and another website where you provide a directions to a local restaurant those should probably be two different API projects.
Each individual map shouldn't have it's own project.
Thanks. This is going to be a supplementary question. Yesterday I created already second project for maps located on second website (despite they have nothing to do with each other except location on the same domain), created new API keys for those maps and deleted their API keys in the first project, because they are in the second project now.
And maps can't be displayed any more. Google Maps is gray and displays information:
Oops! Something went wrong. This page didn't load Google Maps
correctly. See the JavaScript console for technical details.
The Javascript console says:
"Google Maps API error: DeletedApiProjectMapError
https://developers.google.com/maps/documentation/javascript/error-messages#deleted-api-project-map-error"
js:32:350
The same maps work fine without API key, but don't work with the new API key !
Here is an example:
http://darz-bor.info/mapy/puszcza/
I will keep this file with not working API key 1-2 days to allow you to see it and after that will remove API key.
How to make the new API keys working ?
go to Maps JavaScript API and Active this part.
I have APIs. My websites, my IOS apps, and other stuffs. We uses our own stats algorithm.
Then we think we should uses google analytics instead.
However, it's API. It's not a website. No javascript should be involved. We should contact google everything something happens. Just like in android and IOS app.
Can that be done?
Is google analytics the best way to do it?
The API uses php and asp.
I don't know about the best way to do it, but for GA you can use a Measurement Protocol:
https://developers.google.com/analytics/devguides/collection/protocol/v1/
I am trying to develop a web based map application where the user can interact with the map. But I am new to this field and do not have much idea about how to approach this. Basically I want to use a static map created by me, so I think google map API s may not be used in this case. My development platform is unix. Can you please suggest what language I should use to write the server and also what kind of free tools can be used to implement the map part?
Thanx...
I suggest reading up on the Google Maps API 3. You can add overlays or even add your own tiles using the API. Specifically, I suggest looking into the GroundLayers section of the V3 API here GroundOverlays
I've got a Flex application that uses the Google Maps component. Is it possible to configure the component to use Google Maps API v3 without API Key? If not, is there a workaround to use the JavaScript API? Or a timeline for providing swc using Google Maps API v3?
I currently perform client-side geocoding using the Google Maps API v3 webservice, but I need to also display maps and allow user to interact with them.
Firstly, realize that the Javascript API and the Flash API are different API's.
I imagine that they will porting the no API key feature to the Flash API soon.
However, I have no used the Flash API in a while and Google may be moving away from maintaining it. It doubt that they will though. They have a lot invested in the Flash API.