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, 00:58

Segunlakata's gravatar image

Segunlakata
114712
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, 15:51

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
80.9k907111251
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:

×677

question asked: 15 Jan, 00:58

question was seen: 257 times

last updated: 15 Jan, 15:51

powered by OSQA