Nonsense Parser Microframework
    Have ideas to improve npm?Join in the discussion! »

    @agrc/dart-board

    3.3.1 • Public • Published

    @agrc/dart-board

    NPM version

    React component for geocoding addresses and route/mileposts using AGRC's web api.

    Install with npm

    # via npm
    npm install @agrc/dart-board

    Component properties

    {
      apiKey: PropTypes.string.isRequired,
      type: PropTypes.oneOf(['single-address', 'route-milepost']),
      pointSymbol: PropTypes.object,
      events: PropTypes.exact({
        success: PropTypes.func.isRequired,
        error: PropTypes.func.isRequired
      }),
      wkid: PropTypes.number,
      address: PropTypes.shape({
        acceptScore: PropTypes.number,
        suggest: PropTypes.number,
        locators: PropTypes.oneOf([null, 'all', 'addressPoints', 'roadCenterlines']),
        poBox: PropTypes.bool,
        scoreDifference: PropTypes.bool
      }),
      milepost: PropTypes.shape({
        side: PropTypes.oneOf([null, 'increasing', 'decreasing']),
        fullRoute: PropTypes.bool
      }),
      format: PropTypes.oneOf([null, 'esrijson', 'geojson']),
      callback: PropTypes.string
    };

    Defaults

    {
      type: 'single-address',
      address: {
        acceptScore: 70,
        suggest: 0,
        locators: 'all',
        poBox: false,
        scoreDifference: false
      },
      milepost: {
        side: 'increasing',
        fullRoute: false
      },
      wkid: 3857,
      callback: null,
      format: null,
      pointSymbol: {
        style: 'diamond',
        color: [255, 0, 0, 0.5]
      },
      events: {
        success: console.log,
        error: console.error
      }
    };

    Install

    npm i @agrc/dart-board

    DownloadsWeekly Downloads

    68

    Version

    3.3.1

    License

    MIT

    Unpacked Size

    53.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar
    • avatar