Hello again!
Years ago, Jeskko's old original Google Maps pages had a map search feature,
where you could paste a piece of the ASCII map and search for matches in the
continents. In 2014, when I finally took time to refactor the GMap for modern
GMaps API v3 and made the code otherwise better, I decided to drop the search
feature for several reasons. Mainly because it was implemented as server-side
PHP kludge, was slow and horrible. And that was it for some time...
However, early this year, I put some thought into it, and decided that the
time might be ripe for implementing a truly asynchronous search server using
WebSockets. However, at first I attempted to implement WebSockets from ground
up, and it turned out to be a rather frustrating issue because of the
complexities of the protocol. And again, that was it for a while .. until
about week+ ago, I begun to prototype an implementation with libwebsockets.
Now, week later, I am happy to announce a "new old feature" for PupuMaps
pages, the resurrected world map search! The backend is a search server
written in C, using libwebsockets to serve the clients and it performs the
actual searches, while the "front-end" is just a simple web-page + some
JavaScript code to talk to the search server.
Obviously you need a web browser that supports WebSockets, but most of modern
browsers do (see
https://caniuse.com/#feat=websockets ).
The search page is linked from the PupuMaps' pages menu, but direct link is:
https://tnsp.org/maps/search.php
Send feedback via tells or e-mail to ccr@tnsp.org.
--
Ggr Pupunen