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

@opentripplanner/geocoder

Package Overview
Dependencies
Maintainers
4
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentripplanner/geocoder - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

esm/apis/here/index.js

@@ -35,2 +35,4 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";

var position = _ref3.position;
if (!position) return true; // Chain queries might not have position, ignore them
var maxLat = rect.maxLat,

@@ -37,0 +39,0 @@ maxLon = rect.maxLon,

@@ -68,2 +68,4 @@ "use strict";

var position = _a.position;
if (!position)
return true; // Chain queries might not have position, ignore them
var maxLat = rect.maxLat, maxLon = rect.maxLon, minLat = rect.minLat, minLon = rect.minLon;

@@ -70,0 +72,0 @@ var lat = position.lat, lng = position.lng;

5

lib/geocoders/types.d.ts

@@ -53,7 +53,8 @@ import type { LonLatInput } from "@conveyal/lonlat";

};
export declare type AnyGeocoderQuery = SearchQuery & AutocompleteQuery & ReverseQuery;
export declare type MultiGeocoderResponse = FeatureCollection & {
isomorphicMapzenSearchQuery?: SearchQuery & AutocompleteQuery & ReverseQuery;
isomorphicMapzenSearchQuery?: AnyGeocoderQuery;
};
export declare type SingleGeocoderResponse = {
isomorphicMapzenSearchQuery?: SearchQuery & AutocompleteQuery & ReverseQuery;
isomorphicMapzenSearchQuery?: AnyGeocoderQuery;
lat: number;

@@ -60,0 +61,0 @@ lon: number;

{
"name": "@opentripplanner/geocoder",
"version": "1.2.1",
"version": "1.2.2",
"description": "Geocoding tools for multiple geocoding providers",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -45,2 +45,3 @@ import { normalize } from "@conveyal/lonlat";

const checkItemInBoundary = ({ rect }: Boundary) => ({ position }: Item) => {
if (!position) return true // Chain queries might not have position, ignore them
const { maxLat, maxLon, minLat, minLon } = rect

@@ -47,0 +48,0 @@ const { lat, lng } = position

@@ -63,8 +63,10 @@ // Prettier does not support typescript annotation

export type AnyGeocoderQuery = SearchQuery & AutocompleteQuery & ReverseQuery;
export type MultiGeocoderResponse = FeatureCollection & {
isomorphicMapzenSearchQuery?: SearchQuery & AutocompleteQuery & ReverseQuery;
isomorphicMapzenSearchQuery?: AnyGeocoderQuery;
};
export type SingleGeocoderResponse = {
isomorphicMapzenSearchQuery?: SearchQuery & AutocompleteQuery & ReverseQuery;
isomorphicMapzenSearchQuery?: AnyGeocoderQuery;
lat: number;

@@ -71,0 +73,0 @@ lon: number;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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