Giter Site home page Giter Site logo

mpostelnicu / ocds_location_extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-contracting-extensions/ocds_location_extension

0.0 1.0 0.0 52 KB

Allows the point of delivery or site of works for a given line item to be indicated in tender, award and contract objects.

Home Page: https://extensions.open-contracting.org/en/extensions/location/

License: Apache License 2.0

ocds_location_extension's Introduction

Location Data

Communicating the location of proposed or executed contract delivery is important to many users of contracting data.

This extension introduces two properties at the items level to describe location:

  • deliveryAddress - a standard Address block which can be used to provide a postal address where services should be delivered.
  • deliveryLocation - a new block consisting of GeoJSON and Gazetteer entries to describe a wider range of locations to which the contract line item relates.

The locationGazetteers.csv codelist's Category column indicates whether the gazetteer has identifiers for the whole world ('Universal') or only some subset ('National' or 'Sub-National').

Example

Below is an example of a geolocated item in the tender section:

{
  "tender": {
    "items": [
      {
        "id": "item1",
        "description": "Ceremonial Trumpets for Oxford Town Hall",
        "classification": {
          "description": "Trumpets",
          "scheme": "CPV",
          "id": "37312100",
          "uri": "http://purl.org/cpv/2008/code-37312100"
        },
        "deliveryLocation": {
          "geometry": {
            "type": "Point",
            "coordinates": [
              51.751944,
              -1.257778
            ]
          },
          "gazetteer": {
            "scheme": "GEONAMES",
            "identifiers": [
              "2640729"
            ]
          },
          "description": "Central Oxford",
          "uri": "http://www.geonames.org/2640729/oxford.html"
        },
        "deliveryAddress": {
          "postalCode": "OX1 1BX",
          "countryName": "United Kingdom",
          "streetAddress": "Town Hall, St Aldate's",
          "region": "Oxfordshire",
          "locality": "Oxford"
        },
        "unit": {
          "name": "Items",
          "value": {
            "currency": "GBP",
            "amount": 10000
          }
        },
        "quantity": 10
      }
    ]
  }
}

If the procurement related to the rebuilding of a road, then the item could also specify more complex geometries such as:

{
  "tender": {
    "items": [
      {
        "id": "item1",
        "deliveryLocation": {
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [
                102,
                0
              ],
              [
                103,
                1
              ],
              [
                104,
                0
              ],
              [
                105,
                1
              ]
            ]
          },
          "gazetteer": {
            "scheme": "OSMW",
            "identifiers": [
              "27895985"
            ]
          },
          "description": "St Aldate's",
          "uri": "http://www.geonames.org/2640729/oxford.html"
        }
      }
    ]
  }
}

You can take the contents of the geometry object, excluding the geometry keyword, and plug this into any GeoJSON tool to see the shape that is described.

Issues

Report issues for this extension in the ocds-extensions repository, putting the extension's name in the issue's title.

Changelog

v1.1.4

  • Disallow Location.geometry and Location.gazetteer from being null (bug introduced in v1.1.3)
  • Correct the order of longitude and latitude in field descriptions to match the GeoJSON specification
  • Describe elevation or altitude values
  • Remove Sphinx directives from readme
  • Update extension.json for Extension Explorer

v1.1.3

  • Disallow Location.geometry.coordinates from having null in its array of coordinates
  • Disallow Location.gazetteer.identifiers from having null in its array of strings
  • Correct name of locationGazetteers.csv codelist (was locationGazeteers.csv)
  • Allow Location.geometry and Location.gazetteer to be null
  • Add title and description to Location.gazetteer
  • Add description to Item.deliveryLocation, Item.deliveryAddress
  • Add geometryType.csv codelist for Location.geometry.type
  • List codelists in extension.json
  • Add tests and tidy code

ocds_location_extension's People

Contributors

jpmckinney avatar timgdavies avatar duncandewhurst avatar bjwebb avatar odscjames avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.