Is the javascript Google Search API deprecated? - javascript

I am trying to use google search API.
but https://developers.google.com/web-search/docs/ says it is deprecated.
Is there a newer project for the same?
My requirement is to automate google search in a web page.

It seems that this is the alternative: https://developers.google.com/custom-search/

The same page also says you to move to https://developers.google.com/custom-search/

Related

Real time Tracker on Samrtphone using Bing Map

I have read up on GPS Real time tracking and found out several things about it,mostly requiring PHP,but I need use only JavaScript.
As regards to my question, is it possible to do so with just html and JS, using markers or anything else to populate the Bing Map when you move anywhere in the city? Need some help on this, Thanks!
PS: I try to use it on WP8.1, and I am already succeed to add Bing map to it using html5
My solution
and if there is a solution on Win8.1, it's Ok, just how do it?
Yes. In HTML5 you can use the geolocation class: http://www.w3schools.com/HTML/html5_geolocation.asp or since you are using Bing Maps you can use the GeoLocationProvider class: http://msdn.microsoft.com/en-us/library/hh125833.aspx
Make sure you enable share of locations in your app manifest or it will silently fail to get the users location.
This would work in both WP8.1 and Win8.1, and browsers as well.
If you want you can also do all of this in a universal app using .NET.

How to add search engines like _addOrganic in new analytics.js API?

for my new site I am using new analytics.js (as suggested by Google instead of ga.js). Works fine, except I don't see any keywords set in Google Analytics used in Google search by my visitors.
Seems strange to me as I would expect, that Google Analytics would recognize it's own search engine by default.
So I have tried to search for a way how to add new organic search in JS on my site as it was possible with ga.js _addOrganic function. But I have found nothing, there is no mention about this possibility for new analytics.js.
Can anybody give me some hints ? Thanks in advance.
This is no longer set in the code but via the admin interface. Go to ->admin->tracking info->organic search sources (see screenshot).

Using Gmaps.js with a search field

Is there a way to use a search field to seek addresses on the Gmaps.js library?
Also, can I get the coordinates from this address to save on my database?
I followed the Google Maps V3 API and managed to get this result, but I'm wondering if through this javascrips library is also possible. Cheers
Yes you can. For a live example, please see link.

How to embed or recreate a Google Analytics Graph in a custom CMS

I would like to know how to create a graph with Google Analytics (maybe using the api), but I'm unsure if there is already a plugin or tutorial on how to do this. The Javascript API reference at Google.com sucks.
Also any reference to how to create a line graph (canvas element?) would be great too.
Thanks!
I learned to use the Google Visualization API (the one used by analytics, and the one I believe you refer to) from the examples at https://developers.google.com/chart/interactive/docs and found it quite clear.
You can use examples of different graphs from the Gallery as well: http://code.google.com/apis/visualization/documentation/gallery.html
I created a service specifically for this purpose:
EmbeddedAnalytics
You define your chart type (line, bar, horizontal bar), metrics (pageviews, visits, etc), dimension (date, country,etc), and a time frame. Then you simply embed a snippet of code into your site where you want the chart to appear.
Google now has an article specifically on this topic.
https://developers.google.com/analytics/resources/articles/gdataAnalyticsCharts
Try this:
Google Analytics Easy Dashboard Javascript Library
An easy way to build a custom Google Analytics Dashboard on your own page.
http://analytics-api-samples.googlecode.com/svn/trunk/src/reporting/javascript/ez-ga-dash/docs/user-documentation.html#register
Demo: http://analytics-api-samples.googlecode.com/svn/trunk/src/reporting/javascript/ez-ga-dash/demos/set-demo.html
Here is step-by-step guide how to embed Google Analytics chart into a webpage as interactive widget: http://explainum.blogspot.com/2011/04/how-to-add-google-analytics-chart-to.html
EDIT (5/15/2012): The link above goes to a blog post on Explainum -- 3rd party web-service which allows creating embeddable charts from various data sources including (and most popular) Google Analytics.
Connection to GA is made using OAuth. You will need to know your GA profile ID in order to connect. Data is updated every 2-24 hours. The service is free.
DISCLAIMER: I'm one of Explainum's creators.

Where to write JavaScript in my android Program

From last 2 weeks I am searching for an answer but not getting a bit of success.
My scenario is, I am using Eclipse for developing Android apps. I want to display route directions (Driving, Walking, Bicycling) between two dynamically entered addresses on Google Maps... I want to make use of Google Maps JavaScript API V3 Services, because of all its awesome functionalities...
http://code.google.com/apis/maps/documentation/javascript/services.html#Directions
I was suggested by some developers on Stack Overflow and they gave this link http://code.google.com/intl/en/apis/maps/articles/android_v3.html#why But this site has code that uses some JavaScripts in the code, if this site is having the correct stuff, where am I supposed to write JavaScript in my eclipse android app because AFAIK code written in eclipse uses only Java framework.. If that site is not a good bet give me some other links that demonstrates with examples...
I am not sure I follow you. On the link provided earlier on SO, I see the Java code:
http://code.google.com/intl/en/apis/maps/articles/android_v3.html#why
That actually uses Android SDK support for Google Maps. If you still want to use the Javascript, you will have to go through WebView. I would otherwise recomment the way it is followed here:
http://code.google.com/intl/en/android/add-ons/google-apis/maps-overview.html
This page was linked to the previous link mentioned above and it uses Java not Javascript.
You do not need to worry about javascript. The MAP_URL (http://gmaps-samples.googlecode.com/svn/trunk/articles-android-webmap/simple-android-map.html) in WebMapActivity has this javascript in the page. So Either you can write your own html page with that javascript (hosted on your server) or you can simply load the MAP_URL into your webview without worrying about javascript.

Categories