Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stadiamaps/api

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stadiamaps/api - npm Package Versions

23

5.0.0

Diff

Changelog

Source

Version 5.0.0 - 2024-09-04

Removed

  • BREAKING: Removed isRouteResponse and isOsrmRouteResponse helper functions as these were duplicated.

You can migrate to the equivalent instanceOfRouteResponse and instanceOfOsrmRouteResponse methods.

ianthetechie
published 4.0.0 •

Changelog

Source

Version 4.0.0 - 2024-09-04

Added

  • Support for the OSRM format and navigation aids
  • BREAKING: To support the new format, the response type of directions APIs has changed

TypeScript users will need to use a type guard in order to check the type of the response for directions APIs, as the response type is now a union. The response format will depend on the value of the format parameter in your request.

Here is an example of how to do the check in your code. The guard helper function is included in this SDK and exported publicly.

const res = await api.route({ routeRequest: routeRequest });

if (instanceOfRouteResponse(res)) {
  // TODO: Process the response
} else {
  fail("Expected a Valhalla JSON format route response");
}

Alternately, you can guard for OSRM format responses like this:

const res = await api.route({ routeRequest: osrmFormatRouteRequest });

if (instanceOfOsrmRouteResponse(res)) {
  // TODO: Process the response
} else {
  fail("Expected an OSRM format route response");
}
ianthetechie
published 3.2.2 •

Changelog

Source

Version 3.2.2 - 2024-08-16

Fixed

  • Improve modeling of bulk geocoding
ianthetechie
published 3.2.1 •

Changelog

Source

Version 3.2.1 - 2024-08-15

Fixed

  • Isochrone request models now support all costing models
ianthetechie
published 3.2.0 •

Changelog

Source

Version 3.2.0 - 2024-07-31

Added

  • Add support for bulk geocoding
ianthetechie
published 3.1.0 •

Changelog

Source

Version 3.1.0 - 2024-05-11

Added

  • Add support for elevation in route responses
ianthetechie
published 3.0.0 •

Changelog

Source

Version 3.0.0 - 2024-04-30

Added

  • Add support for low-speed vehicle routing
  • The matrix endpoint now accepts its own model rather than coordinate. This includes a search cutoff and paves the way for future expansion.

Changed

  • Improved the documentation of the matrix endpoint failure modes

Fixed

  • The time and distance field on matrix source to target models are now marked as nullable
ianthetechie
published 2.1.0 •

Changelog

Source

Version 2.1.0 - 2024-03-21

Added

  • ignore_ options for ignoring various restrictions (useful for certain map matching applications)

Changed

  • Mark package as pure to enable webpack tree shaking
ianthetechie
published 2.0.0 •

Changelog

Source

Version 2.0.0 - 2024-03-19

Changed

  • BREAKING: Directions Options are moved from a nested object to the root of all turn-by-turn directions APIs. Simply remove the nesting.
  • FIXED: Reflect upstream changes to the time/distance matrix API returning a single dimensional list of sources and targets; the extra layer of nesting is removed and may break existing code (this was a bug fix).
  • Improved documentation strings.

Added

  • Alley factor for auto costing
  • Resample distance parameter to height (elevation) requests
  • Support for requesting alternate routes
ianthetechie
published 1.0.10 •

Changelog

Source

Version 1.0.10 - 2023-12-08

Fixed

  • Support TypeScript 4.7+ exports
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc