Why not ask your question on the new 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.


asked 18 Mar, 06:20

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

Rick from C-137
accept rate: 0%

edited 20 Mar, 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, 13:16) SomeoneElse ♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

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



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:


question asked: 18 Mar, 06:20

question was seen: 1,133 times

last updated: 24 Mar, 13:16

powered by OSQA