app like that
irem
irem

A Node.js library to search for places on Earth in any language. It provides functions to get place suggestions by text, nearby places, and places by ID. Data is stored in TSV, gzipped, or binary format.

Features

getPlaceSuggestionsByText

Returns a list of places based on search terms in any given language. If latitude and longitude are provided, the list is sorted by distance, otherwise sorted by text match. Supports different country codes and customizable result count.

getNearbyPlaces

Returns a list of places based on the provided latitude and longitude values in a given language, sorted by distance. Allows for customization of the amount of results returned.

getPlaceById

Returns detailed location information based on a provided ID from a local data file, useful for retrieving specific place details.