@coex/geosearch
Advanced tools
Comparing version 0.4.2 to 0.5.0
@@ -70,3 +70,3 @@ import { AxiosError, AxiosResponse } from 'axios'; | ||
} | ||
export declare type GeoSearchCountries = 'cz' | 'sk' | 'de' | 'us' | 'gb'; | ||
export declare type GeoSearchCountries = 'cz' | 'sk' | 'de' | 'us' | 'gb' | 'jp'; | ||
export declare type GeoSearchScope = 'muni' | 'area' | 'pubt' | 'street'; |
{ | ||
"name": "@coex/geosearch", | ||
"version": "0.4.2", | ||
"version": "0.5.0", | ||
"description": "Nodejs library for finding places using Mapy.cz Suggest API", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -157,8 +157,8 @@ [![npm version](https://badge.fury.io/js/%40coex%2Fgeosearch.svg)](https://www.npmjs.com/package/@coex/geosearch) | ||
| Option | Type | Default | Description | | ||
| ----------- | ---------------------------------------------- | ------- | -------------------------------------------------------- | | ||
| **scope** | `'muni'` \| `'area'` \| `'pubt'` \| `'street'` | null | Preferred category of results | | ||
| **bounds** | `{ sw: LatLng, ne: LatLng}` | null | Preffered country boundaries | | ||
| **country** | `'cz'` \| `'sk'` \| `'us'` \| `'de'` | null | Preferred country (same as bounds but with some presets) | | ||
| **debug** | boolean | false | Print additional information to console | | ||
| Option | Type | Default | Description | | ||
| ----------- | -------------------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------- | | ||
| **scope** | `'muni'` \| `'area'` \| `'pubt'` \| `'street'` | null | Preferred category of results | | ||
| **bounds** | `{ sw: LatLng, ne: LatLng}` | null | Preffered country boundaries | | ||
| **country** | `'cz'` \| `'sk'` \| `'us'` \| `'de'` \| `'gb'` \| `'jp'` | null | Preferred country. Same as bounds but with some presets. Feel free to add more via pull request | | ||
| **debug** | boolean | false | Print additional information to console | | ||
@@ -165,0 +165,0 @@ ## Development |
@@ -17,2 +17,4 @@ "use strict"; | ||
return { sw: { lat: 49.959999905, lng: -7.57216793459 }, ne: { lat: 58.6350001085, lng: 1.68153079591 } }; | ||
case 'jp': | ||
return { sw: { lat: 20.2531, lng: 122.5557 }, ne: { lat: 45.3326, lng: 153.5912 } }; | ||
default: | ||
@@ -19,0 +21,0 @@ return null; |
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
20579
220