Currently, handwriting.js only POSTs to one service endpoint, that is https://www.google.com.tw/inputtools/request?ime=handwriting&app=mobilesearch&cs=1&oe=UTF-8. I propose that we add alternative service endpoint URLs which the user could pick from. This will reduce the load off Google's servers, and will circumvent (or at least alleviate the restrictions of) Google's API usage limits.
Here are the possible alternative service endpoint URLs the could choose from:
let serviceEndpointURLs = {
"default": "https://www.google.com.tw/inputtools/request?ime=handwriting&app=mobilesearch&cs=1&oe=UTF-8",
"google_tw": "https://www.google.com.tw/inputtools/request?ime=handwriting",
"google_jp": "https://www.google.co.jp/inputtools/request?ime=handwriting",
"google": "https://www.google.com/inputtools/request?ime=handwriting",
"inputtools": "https://inputtools.google.com/request?ime=handwriting"
}
I will try to create a pull request to day to implement these. What do you think?
Currently, handwriting.js only POSTs to one service endpoint, that is
https://www.google.com.tw/inputtools/request?ime=handwriting&app=mobilesearch&cs=1&oe=UTF-8. I propose that we add alternative service endpoint URLs which the user could pick from. This will reduce the load off Google's servers, and will circumvent (or at least alleviate the restrictions of) Google's API usage limits.Here are the possible alternative service endpoint URLs the could choose from:
I will try to create a pull request to day to implement these. What do you think?