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

Hi Guys, please I'm working on a project and we are planning to integrate with openstreetmap. Is it possible to query OSM and get the data returned in a particular order? For example, if I have the user's coordinates (longitude and latitude), and I can generate a user's radius based on the coordinates, how do I retrieve information on certain objects (e.g. building) within the user's radius in an ordered pattern, let's say getting objects' information from behind the user right to the objects in front of the user in the given radius?

Thanks

This question is marked "community wiki".

asked 15 Jan '22, 00:58

Segunlakata's gravatar image

Segunlakata
16131316
accept rate: 0%


The overpass service lets you request information in a certain area but geometric ordering is not possible. You need to retrieve the data, construct the geometries, and then run your own algorithm to determine what is "in front of" and "behind" the user.

permanent link

answered 15 Jan '22, 15:51

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Your answer
toggle preview

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:

×710

question asked: 15 Jan '22, 00:58

question was seen: 535 times

last updated: 15 Jan '22, 15:51

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