code to convert ip to city with baidu map api, and sample application for dianping