@digitransit-search-util/digitransit-search-util-get-geocoding-results
v0.0.6
Published
digitransit-search-util get-geocoding-results module
Downloads
48
Maintainers
Readme
@digitransit-search-util/digitransit-search-util-get-geocoding-results
getGeocodingResults
Parameters
searchString
StringsearchParams
String (Optional) Parameters appended to url, basically box / polygon to restrict search arealang
String (Optional) search languagefocusPoint
Object (Optional) Own Position (PELIAS API)sources
String (Optional) search sources (e.g OSM, GTFS..)minimalRegexp
Object (Optional) Regexp for testing
Examples
digitransit-search-util.getGeocodingResults("result");
//= e.g. {text:"result"}
Returns String Results in JSON form
This module is part of the Digitransit-ui project. It is maintained in the HSLdevcom/digitransit-ui repository, where you can create PRs and issues.
Installation
Install this module individually:
$ npm install @digitransit-search-util/digitransit-search-util-get-geocoding-results
Or install the Digitransit-util module that includes it as a function:
$ npm install @digitransit-util/digitransit-util