carmen-ruby/carmen

Add latitude & longitude for regions

Closed this issue · 2 comments

Might as well, right? It would be super helpful for what I'm working on right now.

Maybe it would be better to just make the YAML arbitrarily extensible for any custom data you want to add to your own YAML files?

For example I needed to know whether mailing addresses in a country require a subregion or not so I ended up doing something like this:

https://gist.github.com/paultyng/0a0974335696f8739e18

But if the data was just saved as an instance var I could access any other YAML fields without having to class_eval and change the initialize method.

We are merging this conversation into our version 2.0 ticket. We'll reference this issue there, but any ongoing conversation can be had on that thread. Sorry for the year-later reply!