Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for standalone Places, Routes SDKs (#40)
* Bump micromatch from 4.0.5 to 4.0.8 Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8. - [Release notes](https://github.com/micromatch/micromatch/releases) - [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md) - [Commits](micromatch/micromatch@4.0.5...4.0.8) --- updated-dependencies: - dependency-name: micromatch dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Bump fast-xml-parser and @aws-sdk/client-location Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) to 4.4.1 and updates ancestor dependency [@aws-sdk/client-location](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-location). These dependencies need to be updated together. Updates `fast-xml-parser` from 4.2.5 to 4.4.1 - [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases) - [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md) - [Commits](NaturalIntelligence/fast-xml-parser@v4.2.5...v4.4.1) Updates `@aws-sdk/client-location` from 3.359.0 to 3.649.0 - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-location/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.649.0/clients/client-location) --- updated-dependencies: - dependency-name: fast-xml-parser dependency-type: indirect - dependency-name: "@aws-sdk/client-location" dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Added V2 Place API support to place-converter. * Removed unused import. * Removed partialFlattenList. On further investigation, Polygon should be fully flattened, and none of the other fields listed actually appear in supported Response types. * Moved GeoPlaces APIs into separate files and APIs. For the new GeoPlaces APIs, each Response type is now mapped to a separate API. This makes the code easier to write and maintain, and will scale better if more APIs are added over time. * Bump rollup from 3.22.0 to 3.29.5 Bumps [rollup](https://github.com/rollup/rollup) from 3.22.0 to 3.29.5. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v3.22.0...v3.29.5) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * Fixed id handling to be more MapLibre-friendly. MapLibre expects GeoJSON Feature ids to be integers. By placing PlaceId values in the id field, they get stripped by MapLibre into "undefined". However, because PlaceId is a valid Feature id value for uses other MapLibre, this change changes the place-converter to stop stripping PlaceId from properties and leaves the id alone for backwards compatibility. The new geoplaces-converter has been changed to put a unique integer in the id field and to stop stripping PlaceId from properties. * Adds converter for V2 CalculateRoutesResponse. This converter is more complex than the V0 converter. It exposes options for converting leg lines, travel step lines, travel step points, leg arrival/departure points, and span lines. When all of these are combined in a single GeoJSON, they can be drawn, detected, and styled differently based on the FeatureType property added to each generated Feature. * Updated to the newest geoplaces-client. This API change replaces Query with QueryText. * Fixed PR feedback. * Fixed some README method name typos * Added remaining V2 API support (#7) * Added V2 route converters and changed flattenProperties default to true. Added converters for CalculateIsolines, OptimizeWaypoints, and SnapToRoads. Also changed all of the flattenProperties defaults for the V2 converters to true because that's the common use case path for use with MapLibre. * Updated all comments to include examples of rendering the results. Also made everything more typedoc-friendly. * Fixed up README and comments. * Removed unneeded comments. * Addressed PR feedback. * Renamed feature types based on PR feedback. * Optimized and split the extract methods. * Fixed README to match PR feedback changes. * Specify browser artifacts The UMD build should be used for browsers (and unpkg, which otherwise references `main`, which is now CommonJS). * Simplify unpkg URLs * Switch to jsdelivr * Update to the latest clients (#10) The package names changed (now geo-<vertical>) and a property was removed from Routes. * Switched to public polyline release (#11) * Switched to public polyline release. * Switch to released polyline package. Previous commit was relying on a locally-installed development build of @aws-geospatial/polyline, which is why it didn't cause any compile failures. * Added commonjs to the datatypes rollup * Use new public packages. Also added a CHANGELOG.md file. * Bump rollup from 3.22.0 to 3.29.5 Bumps [rollup](https://github.com/rollup/rollup) from 3.22.0 to 3.29.5. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v3.22.0...v3.29.5) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * Fixed package-lock merge conflict. * Deleted package-lock.json temporarily. * Fixed up package-lock.json again --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Galvan <[email protected]> Co-authored-by: Juan Lucero <[email protected]> Co-authored-by: Seth Fitzsimmons <[email protected]>
- Loading branch information