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

I am looking for an API where I can retrieve the co-ordinates (GeoJson or topojson) of trees (Or POIs which consists of trees) . I want the request to be sent in tiled web map format (ie https://data.osmbuildings.org/0.2/anonymous/tree/15/33187/22545.json something like this). I have checked OSMBuildings it doesn't have details of trees.

{
    "type": "FeatureCollection",
    "features": [
        {
            "id": "Id",
            "type": "Feature",
            "properties": {
                "type": "tree"
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                        [
                            13.420876,
                            52.53766
                        ]
                ]
            }
        }
    ]
}

I am expecting this kind of response from the server

Thank you

asked 17 Jul '19, 14:59

aravinda_b's gravatar image

aravinda_b
21113
accept rate: 0%

edited 18 Jul '19, 08:42

You seem to have conflicting requests. Do you want to get raw data for the trees, or rendered image tiles? If you want the raw data, then you'll have to use whatever syntax the given API expects, which almost certainly won't be the Slippy Map syntax.

(17 Jul '19, 16:59) alester

I'd be really suprised if there was an off-the-shelf server that provided what you want. I'm sure that you can download OSM data and extract what you want, though, or use overpass to obtain it for a particular area.

(17 Jul '19, 17:30) SomeoneElse ♦

Thanks to alester and SomeoneElse for responding. I have updated question with sample response. This makes solves the confusion i guess.

(18 Jul '19, 08:22) aravinda_b

There's the OpenTrees site which seems to do what you are seeking as an end product. The code is viewable here, this might help you set up your own project.

permanent link

answered 19 Jul '19, 01:39

philam48's gravatar image

philam48
86558
accept rate: 0%

Thank you but that doesn't have data of my region

(22 Jul '19, 12:33) aravinda_b
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:

×290
×287
×36
×18
×13

question asked: 17 Jul '19, 14:59

question was seen: 1,623 times

last updated: 22 Jul '19, 12:33

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