Added Amap(AutoNavi) integration: http://lbs.amap.com (#1164)
* Added support for AMap, aka AutoNavi Map, 高德地图 * Try to include amap error info if failed * Get correct result from amap response * Fix result error in amap return * Refactor codes for AMap handling * Refactor codes for amap result handling * Refactor amap handling codes * Fixed coordinates handling error * Added tests * Fixded amap result handling and tests * Lock webmock on 2.3.2 for ruby 1.9.3 support
Showing
- README.md 30 additions, 18 deletionsREADME.md
- gemfiles/Gemfile.ruby1.9.3 1 addition, 1 deletiongemfiles/Gemfile.ruby1.9.3
- lib/geocoder/lookup.rb 2 additions, 1 deletionlib/geocoder/lookup.rb
- lib/geocoder/lookups/amap.rb 59 additions, 0 deletionslib/geocoder/lookups/amap.rb
- lib/geocoder/results/amap.rb 87 additions, 0 deletionslib/geocoder/results/amap.rb
- test/fixtures/amap_invalid_key 1 addition, 0 deletionstest/fixtures/amap_invalid_key
- test/fixtures/amap_no_results 7 additions, 0 deletionstest/fixtures/amap_no_results
- test/fixtures/amap_reverse 38 additions, 0 deletionstest/fixtures/amap_reverse
- test/fixtures/amap_shanghai_pearl_tower 29 additions, 0 deletionstest/fixtures/amap_shanghai_pearl_tower
- test/test_helper.rb 7 additions, 0 deletionstest/test_helper.rb
- test/unit/lookup_test.rb 9 additions, 3 deletionstest/unit/lookup_test.rb
Loading
Please register or sign in to comment