Socket
Socket
Sign inDemoInstall

@coex/geosearch

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coex/geosearch - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

2

interface/geosearch.interface.d.ts

@@ -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

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