Urgent.News

What's breaking now, across thousands of outlets.

Tech

I built askplaces: Find nearby places using natural language in Node.js 🌍

What if your users could find nearby places without selecting categories, filling out filters, or knowing exactly what to search for? Imagine someone opening your application and asking: "I'm hungry, find restaurants near me." "I'm in Paris, near the Eiffel Tower. Where can I get coffee?" "Where is the nearest pharmacy?" "Find parking around this location." And your backend turns those questions…

Askplaces is a Node.js library that leverages natural language processing and OpenStreetMap data to find nearby places based on user queries. Users can input plain language questions like "I'm hungry, find restaurants near me" and the backend processes these queries to return structured JSON containing relevant place information.

The package uses an LLM to interpret the user's intent, Nominatim to geocode place names, Overpass to find nearby locations, and Valhalla to calculate routes and travel times. It supports various LLM providers and can be easily integrated into applications such as AI city assistants, travel apps, local services platforms, messaging bots, delivery services, and neighborhood guides.

The package is designed for backend use, requiring Node.js 22 or newer, and does not require a Google Maps API key. Developers should remember to include required OpenStreetMap attribution when displaying results.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Zustand: State Management Without the Redux Boilerplate

As React applications grow, managing state becomes more challenging. At first, using useState is enough. But what happens when multiple components need access to the same data?

  • Zustand is a lightweight state management library for React.
  • It eliminates prop drilling by providing a centralized store for shared state.
  • Components can directly access and manipulate the same state with Zustand.

Meta Quest 2·Pro '기능 개발 종료'가 오히려 기회인 이유: 개발자이자 약시 경험자가 본 하드웨어 수명 연장 전략

Meta Quest 2·Pro '기능 개발 종료'가 오히려 기회인 이유: 개발자이자 약시 경험자가 본 하드웨어 수명 연장 전략 Meta가 Quest 2와 Quest Pro의 기능 개발을 종료한다고 발표했다(Engadget, 2024). 앱스토어는 유지되지만, 신규 OS 기능이나 시스템 업데이트는 기대하기 어렵게 됐다.

More from Saturday 7 November →