Google API V3 - Which one to use? - google-maps-api-3

I have few questions about the google map v3 which I am planning to use it my intranet website. Before that
1)
I tried sample application by using the below URLs.Both working fine.
Which one is best ? seems both belongs to V3 ? Can i use it for free ?
http://maps.googleapis.com/maps/api/js?sensor=false
http://maps.google.com/maps/api/js?sensor=false
2)
Am planning to use this v3 URL to locate my stationary stores in my state?
Do I need to buy license for that ? If yes, Do i need to change the URL ?

Go into your api console and grab an API key, then go from there:
https://developers.google.com/maps/documentation/javascript/tutorial#api_key

I tried sample application by using the below URLs.Both working fine.
Which one is best ? seems both belongs to V3 ? Can i use it for free ?
http://maps.googleapis.com/maps/api/js?key={API_KEY}&sensor=false
Go for the first one according to official documentation. But the thing is, what happened to your API key anyway!?
As for whether you can use it for free, read here. (Please show your effort before asking things like these)

Related

Using Google Transliterate [NOT TRANSLATE] API in Android

The project that I'm working on mandates (by law) the name of the business to be displayed to the users in the regional language.
The best option that I could find was Google Transliterate. I'm aware Google Transliterate API has been officially deprecated as of May 26, 2011 but is still available to be used - which solves by need.
So my question is - How can I use Transliterate API without the need to open a web browser? When a user keys in a Edit Text say for e.g. "Baskin Robbins" I would like to get it transliterated behind the scene. I'm on minSdk 10.
Any pointers to working samples would be very much appreciated. Is LiquidCore as possibility? https://github.com/LiquidPlayer/LiquidCore . Any known implementation of Liquidcore & Transliterate? Please advise.
www.google.com/transliterate/indic?tlqt=1&langpair=en|ta&text=baskin%20robbins
Also see here
Implementing Google transliterate API using REST and C#, facing unicode and parsing issues

How To Specify the fields to Wordpress API v2

I'm using the WordPress REST API in my project and sending a GET request to:
http://myblog/wp-json/wp/v2/posts
and It's working quite alright but I want to specify the fields though I don't know how. I have looked at the documentation and still don't know how to go about it. For example, using the public API:
https://public-api.wordpress.com/rest/v1.1/sites/www.mysite.com/posts?number=100&fields=title,excerpt,featured_image
returns only the specified fields. How do I this with the v2 API?
Here's how to access the a list of titles and excerpts using REST API v2:
https://www.example.com/wp-json/wp/v2/posts?_fields[]=title&_fields[]=excerpt&per_page=100&offset=100
https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/
As it states there, the REST API v2 returns a certain set of default fields, and if you want different ones, then you have to implement this as described in that document.
The easy solution to this issue would be to use the ACF to REST API or an equivalent plugin that can extend the REST API for you. I have used this plugin on many sites successfully.
If this is not possible then you will need to modify the response as has been outlined by other answers. You can read more about that here.
You can use ?_fields[]=title&_fields[]=excerpt

Is there an API call to get a list of saved places in Google Maps?

I have a ton of saved places that appear on my Google Maps - but there is no way to manage, filter or search them. Is there a way to access these locations by API?
I scanned the maps api and can't find any reference. Is there another Google API that makes this available?
There do have a REST API can retrieve the saved places.
http://www.google.com/bookmarks/?output=xml
Visit this link to get more information.
https://www.google.com/bookmarks/
There are also api like:
https://www.google.com/bookmarks/find?q=conf&output=xml&num=10000
https://www.google.com/bookmarks/lookup?
But seems like they have been deprecated and most of document are not available anymore. Use them as you own risk.
Currently the list of saved places in My Maps is not available via an API. There is a feature request tracking this you can use to follow along # https://code.google.com/p/gmaps-api-issues/issues/detail?id=2953.
2022: I created a gist for parsing saved places from a shared list via python. It is really unstable because its a quick&dirty solution but maybe it will help someone: https://gist.github.com/ByteSizedMarius/8c9df821ebb69b07f2d82de01e68387d
Edit: The above answer did not yet take pagination into consideration. Please see my answer here.

Getting a Track from a Spotify ID using the libspotify,dll

I can find tracks using the libspotify.dll just fine.
But if I have a Spotify Id like: 7KEYPk9d9hc1rrHVmztrUS. It does not matter if I set "track:" in front.
Actually I am using a .Net wrapper of the dll but that does not give me any results when I give it the Id.
Well. By the way LibSpotify is obsolete. But back to your problem:
If you have a look at their 'new' Web API there is a way to use a search feature (you do not need authorization for this)
https://api.spotify.com/v1/tracks/7KEYPk9d9hc1rrHVmztrUS
Related to LibSpotify I just found an example
https://developer.spotify.com/docs/libspotify/12.1.51/search_8c-example.html

Crawling wikipedia

I'm going through crawling wikipedia using website downloader for windows, i was looking through the whole options in this tool to find an option to download wikipedia pages for specific period, for example from 2005 untill now.
Does anyone get any idea about crawling the website in specific period of time ?
Why not download the SQL database containing all of Wikipedia?
You can then query it using SQL.
Give a try to the Wikipedia API and your programming skills.
There should be no need to do web scraping; use the MediaWiki API to directly request the information you want. I'm not sure what you mean by "wikipedia pages for a specific period" - do you mean last edited at a certain time? If so, while skimming, I noticed an API call that lets you get a look at the last n revisions; just ask for the last revision and see what its date is.
It depends if the website in question offers the archive and mostly don't so its not possible in a straightforward way to crawl a sample started from specific date. But you can implement some intelligence in your crawler to read the page created date or something like that.
But you can also look at Wikipedia API at http://en.wikipedia.org/w/api.php

Resources