@opentripplanner/geocoder
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -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; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
263695
4773