
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
A ruby version of Baidu API Geocoder client.
Add this line to your application's Gemfile:
gem 'baidu_api-geocoding'
And then execute:
$ bundle
Or install it yourself as:
$ gem install baidu_api-geocoding
require 'baidu_api/geocoding'
BaiduApi::Geocoding.setup ak: 'xxxx', sk: 'xxxx'
or
BaiduApi::Geocoding.setup do |config|
config.ak = 'xxxx'
config.sk = 'xxxx'
end
To geocode an address:
BaiduApi::Geocoding.geocode(address: '百度大厦')
=> {"status"=>0, "result"=>{"location"=>{"lng"=>116.30814954222, "lat"=>40.056885091681}, "precise"=>1, "confidence"=>80, "level"=>"商务大厦"}}
BaiduApi::Geocoding.geocode(location: '40.056885091681,116.30814954222')
=> {"status"=>0,
"result"=>
{"location"=>{"lng"=>116.30814954222, "lat"=>40.056885160713},
"formatted_address"=>"北京市海淀区上地十街10",
"business"=>"西二旗,龙泽,回龙观",
"addressComponent"=>{"city"=>"北京市", "direction"=>"附近", "distance"=>"1", "district"=>"海淀区", "province"=>"北京市", "street"=>"上地十街", "street_number"=>"10"},
"poiRegions"=>[{"direction_desc"=>"内", "name"=>"百度大厦"}],
"cityCode"=>131}}
More options for parameter of BaiduApi::Geocoding.geocode, please see http://developer.baidu.com/map/index.php?title=webapi/guide/webservice-geocoding
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that baidu_api-geocoding demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.