1. Location Based News Feed

Description
RSS-2.0 feed for retrieving news about specified location. Location could be specified in either English or Simplified Chinese. The feed contains media rss and geo rss information.
If the location couldn't be found, 404 will be returned. For a complete list of supported locations, please check out this csv file.
Sample Request
curl http://www.thetruechina.com/rss/geo?q=Beijing

2. Location Extraction Service

Description
JSON REST API for extracting location information from UTF-8 encoded chinese content. The input should be utf-8 encoded and no longer than 1024 characters.
Response
Succeeded
{'status_code':200, 'name':'Beijing', 'geopt':'39.905556,116.395833'}
Bad Request (eg. missing parameter)
{'status_code':400}
Check parameter has been correctly encoded and escaped, length doesn't exceed the limitations, etc.
No Location Found
{'status_code':601}
Sample Request
curl http://www.thetruechina.com/api/locate?q=%E5%A5%A5%E8%BF%90%E4%BC%9A%E6%9C%9F%E9%97%B4%EF%BC%8C%E5%8C%97%E4%BA%AC%E5%AE%9E%E8%A1%8C%E5%8D%95

Feedback & Support

Contact alex.dong at gmail.com for questions and suggestions.