README.md in geong-0.0.1 vs README.md in geong-0.0.2
- old
+ new
@@ -28,45 +28,49 @@
require "geong"
client = Geong::Client.new(host: "127.0.0.1")
client.open
- client.coordinates "toko-tower"
- => <Geong::Geocoder::Location latitude:35.6585805, longitude:139.7454329>
+ client.coordinates("TokyoTower")
+ => <Geong::Geocoder::Location latitude:35.6585805, longitude:139.7454329>
client.address("133.11.0.1")
=> "Tokyo, 13 , Japan"
## Configure
You can give the configuration script by using the -c option.
+If you want to know the other command line options, please see the "geong_server --help".
- $ geong_server -p 19090 -c config.rb
+ $ geong_server -c config.rb -d
### Thrift Configuration
If you want to change the server settings, please use the Geong::Server.configure block in configuration script.
Configuration DSL supported following methods.
* logger(default: Logger.new(STDERR)) This option is available only if the default server.
* port(default: 9090) This option is available only if the default transport.
- * num_threads(default: 20) This option is available only if the default transport.
* transport(default: Thrift::ServerSocket)
* transport_factory(default: Thrift::FramedTransportFactory)
* protocol_factory(default: nil)
* server(default: Thrift::NonblockingServer)
+ * num_threads(default: 20) This option is available only if the default server.
* processor(readOnly) create geong processor
### Example. Using ThinHTTPServer
+server
+
# server(config.rb)
require "thrift/server/thin_http_server"
Geong::Server.configure do
server Thrift::ThinHTTPServer.new(processor, {port: 8080})
end
+client
# client
require "geong"
options = {transport: Thrift::HTTPClientTransport.new("http://127.0.0.1:8080")}
@@ -122,10 +126,10 @@
thrift/geocoder.thrift
## Contributing
-1. Fork it ( https://github.com/[my-github-username]/geong/fork )
+1. Fork it ( https://github.com/yuki-teraoka/geong/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request