Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
使用百度地图API进行地址定位坐标、坐标定位地址、名称定位地址。
$ gem install baidu_geocoder
require 'baidu_geocoder'
include 'BaiduGeocoder'
## get_location_by_addr
loc = Geocoder.get_location_by_addr(addr)
## get_address_by_name
addr = Geocoder.get_address_by_name(name)
## get_address_by_loc
addr = Geocoder.get_address_by_loc(lat, lng)
loc = Geocoder.get_location_by_addr(addr, your_ak)
➜ baidu_geocoder git:(master) ✗ baidu_geocoder
Usage:
baidu_geocoder -a addr : 返回坐标
baidu_geocoder -n name : 返回地址
baidu_geocoder -l lat lng : 返回地址
➜ baidu_geocoder git:(master) ✗ baidu_geocoder -n 北京市政府
获取地址成功:
{:province=>"北京市", :city=>"北京市", :district=>"西城区", :formatted_address=>"北京市西城区文津街"}
➜ baidu_geocoder git:(master) ✗ baidu_geocoder -a 北京市西城区文津街
获取定位成功:
{:lng=>116.39321980074757, :lat=>39.92881485241565}
➜ baidu_geocoder git:(master) ✗ baidu_geocoder -l 39.92881485241565 116.39321980074757
获取地址成功:
{:province=>"北京市", :city=>"北京市", :district=>"西城区", :formatted_address=>"北京市西城区文津街3号"}
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that baidu_geocoder 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.