localgovdrupal / localgov_outpost

Outpost directory integration for LocalGov Drupal
0 stars 0 forks source link

Add a field to the location address to display name. #11

Closed finnlewis closed 10 months ago

finnlewis commented 10 months ago

In the outpost API with have a location with name, like:

          "id": 31,
          "name": "Shrewsbury House Community Centre",
          "address_1": "Bushmoor Crescent",
          "city": "Shooters Hill",
          "state_province": null,
          "postal_code": "SE18 3EG",
          "country": null,
          "geometry": {
            "type": "Point",
            "coordinates": [
              0.072232,
              51.473667
            ]
          },

See https://greenwich-outpost-api-staging.herokuapp.com/api/v1/services

So it would be nice to migrate the name into the address field for the location on the geo_type.

See admin/structure/geo_types/manage/address/fields/geo_entity.address.postal_address

I guess the 'Company' field is the best fit.

finnlewis commented 10 months ago

Cross referencing https://gitlab.com/rbgreenwich/dev/gcd/gcd-drupal/-/issues/97

finnlewis commented 10 months ago

I'm taking a look at this now....

finnlewis commented 10 months ago

@ekes if we did want to enable the address 'Company' field and relabel it to 'Organisation', where's that's defined?