5.0.0 • Published 10 months ago

@opentripplanner/transit-vehicle-overlay v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

WHAT:

Presentational React Components used to build an interactive vehicle map . This component uses functional components and hooks (no more class components).

NOTE: eventually want this component (and OTP-UI in general) to support both leaflet and mapbox gl libraries.

CURRENTLY:

This package is being re-built from the ground-up to instead generate and render geojson from realtime transit data. Some features (and most components) have initially been removed, but they will be restored in future.

HOW:

There is a type format for RT vehicle data in OTP-UI: https://github.com/opentripplanner/otp-ui/blob/master/packages/core-utils/src/types.js#L54

This format was derived in this project to accord with a companion web service that delivers realtime vehicle information information, based on GTFS-Realtime data (https://github.com/OpenTransitTools/gtfsdb_realtime/blob/master/ott/gtfsdb_realtime/model/response/vehicle_list.py).

Other realtime vehicle data may be used with this layer. For example, there is demo code within the component that shows converting another service response format (https://developer.trimet.org/ws_docs/vehicle_locations_ws.shtml) to work with this layer.

CURRENTLY:

Only input in the form of https://github.com/opentripplanner/otp-ui/blob/master/packages/types/src/index.ts#L90 is supported.

NOTES:

  • The use of hooks was a good thing, but there's a bit of resulting redirection (HL functions, etc...) in the component lib (and interface) which obfuscates things a bit ... apologies in advance.
  • 2 very useful utilities for converting .svg to React svg .js files:

TODO:

  1. more / better unit tests
  2. mapbox gl
5.0.0

10 months ago

4.0.13

10 months ago

4.0.12

11 months ago

4.0.11

1 year ago

4.0.10

1 year ago

4.0.9

1 year ago

4.0.5

2 years ago

4.0.7

2 years ago

4.0.6

2 years ago

4.0.8

2 years ago

4.0.4

2 years ago

4.0.3

2 years ago

4.0.1

2 years ago

4.0.2

2 years ago

2.4.0-beta.1

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.5

3 years ago

4.0.0

3 years ago

2.5.0

3 years ago

3.0.2

3 years ago

3.0.0-alpha.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.4.1

3 years ago

3.0.0-alpha.1

3 years ago

2.4.2

3 years ago

2.4.0

3 years ago

2.3.3

3 years ago

2.3.3-alpha.1

3 years ago

2.3.1-x

4 years ago

2.3.2

4 years ago

2.3.0

4 years ago

2.3.1

4 years ago

2.2.1-alpha.1

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.5-alpha.1

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.1

5 years ago

1.0.1-alpha.1

5 years ago

1.0.0

5 years ago

1.0.0-alpha.1

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20-dev2

5 years ago

0.0.20-dev

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago