npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/deutschebahn_flinkster

v6.0.0

Published

DataFire integration for Flinkster_API_NG

Downloads

17

Readme

@datafire/deutschebahn_flinkster

Client library for Flinkster_API_NG

Installation and Usage

npm install --save @datafire/deutschebahn_flinkster
let deutschebahn_flinkster = require('@datafire/deutschebahn_flinkster').create();

.then(data => {
  console.log(data);
});

Description

This REST-API enables you to query for private transport sharing offers provided by companies and cities in Germany, Netherland and Austria. You can search for informations about the rental stations (points or areas) where you can find the rentals by utilizing the /areas/ ressource. With the help of the proximity search in the /bookingproposals/ URI you can request the availabilities of the rentalobjects for spontaneous or planed usage in the future.

Feel free to browse through data by setting the parameter 'providernetwork' to the value: 1: Search for car sharing offers provided by the Flinkster platform (http://www.flinkster.de) 2: Finding bike rental offers from Call a Bike (http://www.callabike.de)

You can find more details in the documentation section (Unfortunately only available in german language).

Have lots of fun and we are lucky to take notice of your products or getting your feedback.

Actions

listAreas

Search for areas (locations of rental objects) by criteria.

deutschebahn_flinkster.listAreas({}, context)

Input

  • input object
    • lat number
    • lon number
    • radius integer
    • offset integer
    • limit integer
    • expand string
    • type string
    • provider string
    • providernetwork string

Output

getArea

Search for a specific area by UID.

deutschebahn_flinkster.getArea({
  "areaUID": ""
}, context)

Input

  • input object
    • areaUID required string: The Area UID
    • expand string: Expand Provider

Output

listBookingProposals

Here you can query all bookable Rental Objects with different Parameters (Time, Location,...)

deutschebahn_flinkster.listBookingProposals({}, context)

Input

  • input object
    • lat number
    • lon number
    • radius integer
    • offset integer
    • limit integer
    • providernetwork string
    • begin string
    • end string
    • expand string
    • view string

Output

getIndex

Show Service index.

deutschebahn_flinkster.getIndex(null, context)

Input

This action has no parameters

Output

listCategories

Search for categorie.

deutschebahn_flinkster.listCategories({
  "providernetworkUID": ""
}, context)

Input

  • input object
    • providernetworkUID required string
    • expand string

Output

getCategory

Search for categorie.

deutschebahn_flinkster.getCategory({
  "providernetworkUID": "",
  "categoryUID": ""
}, context)

Input

  • input object
    • providernetworkUID required string: Provider Network UID
    • categoryUID required string
    • expand string

Output

getPrices

Prices of a rental object by query params. The params depend on the price determination strategy of the provider network.

deutschebahn_flinkster.getPrices({
  "providernetworkUID": ""
}, context)

Input

  • input object
    • providernetworkUID required string

Output

getRentalObject

Get information about the Rental Object.

deutschebahn_flinkster.getRentalObject({
  "rentalObjectUID": "",
  "providernetworkUID": ""
}, context)

Input

  • input object
    • rentalObjectUID required string
    • providernetworkUID required string
    • expand string

Output

getProviderNetwork

Get information about the ProviderNetworkResources.

deutschebahn_flinkster.getProviderNetwork({
  "uid": ""
}, context)

Input

  • input object
    • uid required string

Output

getProvider

Get information about the ProviderResourcesCtrl.

deutschebahn_flinkster.getProvider({
  "uid": ""
}, context)

Input

  • input object
    • uid required string

Output

Definitions

AddressJO

  • AddressJO object
    • city string
    • district string
    • isoCountryCode string
    • number string
    • street string
    • zip string

AreaJO

  • AreaJO object
    • _links array
    • address AddressJO
    • attributes object
    • description string
    • expand string
    • geometry GeometryJO
    • href string
    • name string
    • provider ProviderJO
    • providerAreaId string
    • providerNetworkIds array
      • items integer
    • type string (values: STATION, OPERATIONAREA, PARKINGAREA, GASSTATION, UNKNOWN)
    • uid string

BookingProposalJO

CategoryJO

  • CategoryJO object
    • _links array
    • attributes object
    • description string
    • expand string
    • href string
    • name string
    • price array
    • uid string

Crs

  • Crs object
    • properties object
    • type string (values: name, link)

ErrorJO

  • ErrorJO object
    • attributes object
    • code integer
    • level string (values: INFO, WARNING, ERROR)
    • message string
    • name string

Feature

  • Feature object

FeatureCollection

  • FeatureCollection
    • bbox array
      • items number
    • crs Crs
    • features array

GeoJsonObject

  • GeoJsonObject object
    • bbox array
      • items number
    • crs Crs

GeometryJO

JsonCollection

  • JsonCollection object
    • _links array
    • href string
    • items array
    • limit integer
    • offset integer
    • size integer

JsonCollectionPriceJO

  • JsonCollectionPriceJO object
    • _links array
    • href string
    • items array
    • limit integer
    • offset integer
    • size integer

JsonObject

  • JsonObject object
    • _links array
    • attributes object
    • description string
    • expand string
    • href string
    • name string
    • uid string

LineString

  • LineString
    • bbox array
      • items number
    • crs Crs

LinkJO

  • LinkJO object
    • href string
    • rel string
    • verb string

LngLatAlt

  • LngLatAlt object
    • altitude number
    • latitude number
    • longitude number

MultiLineString

  • MultiLineString
    • bbox array
      • items number
    • crs Crs
    • coordinates array

MultiPoint

  • MultiPoint
    • bbox array
      • items number
    • crs Crs
    • coordinates array

MultiPolygon

  • MultiPolygon
    • bbox array
      • items number
    • crs Crs
    • coordinates array

Point

  • Point object

Polygon

  • Polygon
    • bbox array
      • items number
    • crs Crs
    • coordinates array

PriceJO

  • PriceJO object
    • _links array
    • attributes object
    • currency string
    • description string
    • expand string
    • grossamount number
    • href string
    • interval integer
    • name string
    • preferredprice boolean
    • taxrate number
    • type string (values: TIME, DISTANCE)
    • uid string

ProviderJO

  • ProviderJO object
    • _links array
    • attributes object
    • description string
    • expand string
    • href string
    • name string
    • uid string

RentalObjectJO

  • RentalObjectJO object
    • _links array
    • attributes object
    • category CategoryJO
    • description string
    • expand string
    • href string
    • name string
    • provider ProviderJO
    • providerNetworkIds array
      • items integer
    • providerRentalObjectId string
    • rentalModel string (values: FREEFLOATING, FREEFLOATINGWITHSTATION, STATIONBASED, PARKINGAREA, UNKNOWN)
    • type string (values: VEHICLE, VEHICLEPOOL, BIKE, PEDELEC, UNKNOWN)
    • uid string