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

geo-city-finder

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geo-city-finder

A lightweight JavaScript library for identifying cities based on geographical coordinates and determining if provided coordinates match those of a city with high accuracy.

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Geo City Finder 🌐

A lightweight JavaScript library for identifying cities based on geographical coordinates and determining if provided coordinates match those of a city with high accuracy.

Table of Contents

  • 🚀 Features
  • 📦 Installation
  • 💡 Usage
  • 🙏 Contributing
  • 📄 License

🚀 Features

  • Accurately determine if the city matches the given geographical coordinates.

📦 Installation

Add Geo City Finder to your project with npm:

npm install geo-city-finder

Or use yarn:

yarn add geo-city-finder

💡 Usage

import { getCoordinatesMatch } from 'geo-city-finder';

// Find if is user from current city
const cityCoordinates = {
  accuracy: 2546.076925492267,
  latitude: 40.1872,
  longitude: 44.5152,
};

getCoordinatesMatch(cityCoordinates).then((result) => {
  // Compares user coordinates with city coordinates...
  console.log(result); // true or false
});

🙏 Contributing

Got ideas or found a bug? We appreciate your contributions! Here's how you can get involved:

  • Open an Issue: If you have a new feature idea, want to report a bug, or have a general question, open an issue.

  • Send a Pull Request (PR): Contributions are welcome! If you'd like to contribute code, follow these steps:

    • Fork the repository.
    • Create a new branch for your feature or bug fix.
    • Make your changes and submit a pull request.
  • Spread the Word: If you find this library helpful, consider sharing it with others or giving it a star on GitHub.

📄 License

Licensed under the MIT License.


🌱 Future Plans

  • create a playground
  • prepare a built-in city list
  • improve code, add tests, all docstrings etc.

Made with ❤️ by Albert Arakelyan

Keywords

FAQs

Package last updated on 28 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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