latlon2country

Converts a coordinate in a country, with lightweight data fetching (by pietervdvn)

Latlon2country Alternatives

Similar projects and alternatives to latlon2country

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better latlon2country alternative or higher similarity.

latlon2country reviews and mentions

Posts with mentions or reviews of latlon2country. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-12.
  • Organizing OpenStreetMap Mapping Parties
    8 projects | news.ycombinator.com | 12 Apr 2024
    Yeah, the country location is a requirement to show the opening hours. The library (https://github.com/opening-hours/opening_hours.js) is aware of holidays in many countries, but for that it needs to know what country a POI is in.

    The country awareness source code is here: https://github.com/pietervdvn/latlon2country

    The idea: I've taken all the country boundaries from OSM (via nominatim); I slice them in four parts. If the resulting geojson is too big, I slice this again until I have small geojsons, suitable to download. If you know the zoomlevel and location, one can use the standard slippy-tile-index to fetch the correct tile. (Alternatively, if the entire tile is within a country, it'll just return the country code)

    However, the client also needs to know what zoomlevel there is. For that, I built a search tree.

    It's been a while though, so I've forgotten some of the details ;)

  • Where to find a merged updated OSM worldmap.
    3 projects | /r/openstreetmap | 20 Mar 2023
    Probably not useful for you, but https://github.com/pietervdvn/latlon2country/ has a 'tiles.zip', where all the boundaries are tiled into small pieces.
  • How do I download OSM national boundaries?
    1 project | /r/openstreetmap | 31 Dec 2020
    I also have them available in cut-up geojson-fragments - I use them to quickly determine in which country a point lies in a frontend app. See https://github.com/pietervdvn/latlon2country
  • A note from our sponsor - SurveyJS
    surveyjs.io | 3 May 2024
    With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js. Learn more →

Stats

Basic latlon2country repo stats
3
0
0.0
over 1 year ago

pietervdvn/latlon2country is an open source project licensed under GNU General Public License v3.0 only which is an OSI approved license.

The primary programming language of latlon2country is TypeScript.

Popular Comparisons


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com