Class: CsvAddr

nyc/ol/format/CsvAddr~ CsvAddr


new CsvAddr(options)

Class to create point features from CSV data

Parameters:
Name Type Description
options module:nyc/ol/format/CsvAddr~CsvAddr.Options

Constructor options

Mixes In:
Source:
See:

Extends

  • ol.format.Feature

Methods


readFeatures(source [, options])

Read all features from a source

Parameters:
Name Type Argument Description
source Object

Rows from a CSV data source

options olx.format.ReadOptions <optional>

Read options

Source:
Returns:

Features

Type
Array.<ol.Feature>

setGeocode(feature, geocode)

Set the feature geocode result and geometry

Parameters:
Name Type Description
feature ol.Feature

The feature

geocode module:nyc/Locator~Locator.Result

A geocoder response

Source:

setGeometry(feature, source)

Set the feature geometry

Parameters:
Name Type Description
feature ol.Feature

The feature

source Object.<string, string>

A row from a CSV data source

Source:

Type Definitions


Options

Constructor options for module:nyc/ol/format/CsvAddr~CsvAddr

Type:
  • Object
Properties:
Name Type Argument Default Description
autoDetect boolean <optional>
false

Attempt to determine standard column names and projection

x module:nyc/Geocoder~Geocoder

The geocoder to use for geocoding feature

locationTemplate string

The location template for generating a location string to pass to the geocoder

Source: