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

I imported OSM data using osm2pgsql and querying it using postgis extentsion but struggling to get some decent output.

I would like to query for ATMs within 500 meters at location long/lat (-0.1470123 51.5149226) (London) Here is my query

SELECT name, ST_AsText(ST_Transform(way,4326)) FROM planet_osm_point WHERE amenity = 'atm' AND ST_DWITHIN(way, ST_TRANSFORM(ST_SETSRID(ST_MAKEPOINT(-0.1470123,51.5149226),4326),900913), 500);

Can you help?

asked 19 Dec '18, 14:03

mrparadox's gravatar image

mrparadox
11445
accept rate: 0%

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
×263
×134

question asked: 19 Dec '18, 14:03

question was seen: 1,230 times

last updated: 19 Dec '18, 14:03

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