NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi everyone,

I have a tiny website with a SQLite DB.

I would like to display some result based on location. Sorted by distance from the visitor.

The result will be display has a pure html output (table etc..) and trough a map (I'm currently using leafletjs / OSM )

But I have no idea where to start.. how store the location, how grab the position of the visitor and how sort the delta.

Thanks.

asked 18 Mar '23, 06:20

Rick%20from%20C-137's gravatar image

Rick from C-137
16223
accept rate: 0%

edited 20 Mar '23, 07:02

It sounds like this is mostly or all about web programming rather than OSM per se.

An example of something that does geolocation in Leaflet is here, but I'm sure that there are better examples on Leaflet's own site.

As for the rest of it (sorting data etc.), I'd suggest finding one of the "Stack" sites with relevant content.

(24 Mar '23, 13:16) SomeoneElse ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×113
×63
×5

question asked: 18 Mar '23, 06:20

question was seen: 1,412 times

last updated: 24 Mar '23, 13:16

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum