openva / crump

A parser for the Virginia State Corporation Commission's business registration records.
https://vabusinesses.org/
MIT License
20 stars 3 forks source link

Mappings with geodata can't be generated from YAML #82

Closed waldoj closed 9 years ago

waldoj commented 10 years ago

Our JSON mapping geodata needs to look like this:

"location": {
    "type": "object",
    "properties": {
        "coordinates": {
            "type": "geo_point",
            "lat_lon": "true"
        }
    }
}

All we have right now in our YAML is this:

- name:        corp-coordinates
  alt_name:    coordinates
  description: Latitude and longitude of Principal address
  group:       address
  search:
    type:      geo_point

Somehow we have to figure out how to use that YAML to generate that JSON. Until that happens, our geosearch functionality is going to break every week, when the data is updated.