```ruby
require 'ostruct'
require 'yaml'
osm_config = YAML.load_file(Rails.root.join('config', 'osm.yml'))
OpenStreetMapConfig = OpenStruct.new osm_config[Rails.env]

```

Make sure to use proper osm api base uri.
user
```ruby
require 'ostruct'
require 'yaml'
osm_config = YAML.load_file(Rails.root.join('config', 'osm.yml'))
OpenStreetMapConfig = OpenStruct.new osm_config[Rails.env]
Rosemary::Api.base_uri OpenStreetMapConfig.oauth_site

```
assistant