• 1

getting back both: the map and the data from a request via overpass-turbo.eu


Question

for a little (!) project i need to have the data (in DB ) and the maps- 

this request delivers the Map

 

 

 

[timeout:600];
area["ISO3166-1"="BR"]->.brazil;
area["ISO3166-1"="AR"]->.argentina;
area["ISO3166-1"="VE"]->.venezuela;
area["ISO3166-1"="PE"]->.peru;
area["ISO3166-1"="CL"]->.chile;

/* more areas..*/

(
  nwr[amenity=hospital](area.brazil);
  nwr[amenity=hospital](area.argentina);
  nwr[amenity=hospital](area.venezuela);
  nwr[amenity=hospital](area.peru);
  nwr[amenity=hospital](area.chile);
  /* other queries... */
);
out center;


this request delivers the data;

 

 

 

[out:csv(::id,::type,::lon, ::lat, "name","addr:postcode","addr:city","addr:street","addr:housenumber","contact:website"," contact:email=*")][timeout:600];
area["ISO3166-1"="BR"]->.brazil;
area["ISO3166-1"="AR"]->.argentina;
area["ISO3166-1"="VE"]->.venezuela;
area["ISO3166-1"="PE"]->.peru;
area["ISO3166-1"="CL"]->.chile;


/* more areas..*/

(
  nwr[amenity=hospital](area.brazil);
  nwr[amenity=hospital](area.argentina);
  nwr[amenity=hospital](area.venezuela);
  nwr[amenity=hospital](area.peru);
  nwr[amenity=hospital](area.chile);
  /* other queries... */
);
out center;

 

 

question 

how to achive that i get back both data -set with the request via overpass-turbo.eu 

13 answers to this question

Recommended Posts

  • 0

How can I export or query all euroean hospitals from Open Street Map?

 

 

by the way this can be regarded as a contribution to the COVID-19 response - fiding a list of all European Hospitals: Find all datasets available for download on COVID-19.

 

how can we download data on hospital. - very important: i need the maps and (!!) the data like adress, webiste, location etc. etx. I am looking for a (european) dataset of hospitals: mainly locations, but if possible also names, sizes, number of beds. As far as I can tell, this does not exist yet, but perhaps there are good starting points!

 

btw: some approaches:

healthsites.io is an open data effort to map healthcare entities (hospitals, clinics, pharmacies, private practices, etc.) worldwide. The data is drawn from OpenStreetMap and at a minimum provides the name and geographic coordinates of each healthcare entity. There is a OSM data model for health sites, details provided here. The data is released under the Open Data License.

 

which options do we have!?

can i exort maps - created by requests to the overpass-turbo.eu page: and export the kml-results into a plugin or a block in Wordpress!? That would be more than great

At the moment i am in the early planning stages of a new project.

 

again – the approaches:

well i want to export the maps in kml or geojson.

 

a. southamerica or

b. europe

 

for a overview or for retrival …

for example a: … showing a map that i have gathered – from http://www.overpass-turbo.eu

 


area["ISO3166-1"="BR"]->.brazil;

area["ISO3166-1"="AR"]->.argentina;

 

/* more areas..*/

(

nwr[amenity=hospital](area.brazil);

nwr[amenity=hospital](area.argentina);

/* other queries... */

);

out center;

 

for example b:

 


[out:csv(::id,::type,"name","addr:postcode","addr:city","addr:street","addr:housenumber","website"," contact:email=*")][timeout:600];

area["ISO3166-1"="CL"]->.chile;

 

/* more areas..*/

 

(

nwr[amenity=hospital](area.chile);

);

out center;

 

and besides showing some maps i want to offer a retrival: eg with a plugin like

 

wp-jobmanager or wp-participants database ( cf; https://wordpress.org/support/plugin/participants-database/ )

 


812380089 way Clínica Tarapacá Iquique Barros Arana 1550 https://www.clinicatarapaca.cl/

812714508 way Hospital Clínico Viña del Mar Viña del Mar Limache 1741

817842590 way Hospital de Fresia San José 301

819315869 way Nueva Clínica Madre e Hijo Avenida Santa Rosa 1503

822509761 way SurMédica

828332217 way Consalud

829563034 way Hospital de Niños Dr. Roberto del Río

831654714 way Clínica Reñaca

832118050 way Clínica Alemana Beauchef 765

832203189 way Clínica Curicó Curicó Villota

840220768 way Hospital Angol General Óscar Bonilla 750

840359494 way

844876695 way SOS RESCATE ANIMAL 100000 La Huaica Bernardo O'Higgins S/N

4587756 relation Clínica Portada Antofagasta Avenida José Manuel Balmaceda 2648 http://www.clinicaportada.cl/

6066032 relation Complejo Asistencial Doctor Víctor Ríos Ruiz Avenida Ricardo Vicuña 0147

6634378 relation Preuniversitario Pedro de Valdivia Lo Barnechea Avenida José Alcalde Délano 10581 https://www.preuniversitariopedrodevaldivia.cl/

7133551 relation

 

well do you think that i can do some thing – eg the import of data that is derived eg

.from healthsites.io or openstreetmap (the GeoJSON or KML data )?

look forward to hear from you

 

regards

 

 

 

  • 0

hello again - well this is what i have got back - but this looks a bit too complex. 

 

i can save this as 

 

kml 

geojson 

or shapefile 

 

but at the moment i think that this is way too complex - 

 

 

question -how to lower the rate of records in the result list

 

note: i want both - the map and the data - here in t his case the d ata of the hospitals

 

 

image.png.cab7c6b48540240d9c861b0da54af73b.png

  • 0
5 hours ago, tarifa said:

hello again - well this is what i have got back - but this looks a bit too complex. 

 

i can save this as 

 

kml 

geojson 

or shapefile 

 

but at the moment i think that this is way too complex - 

 

 

question -how to lower the rate of records in the result list

 

note: i want both - the map and the data - here in t his case the d ata of the hospitals

 

 

image.png.cab7c6b48540240d9c861b0da54af73b.png

How? Read the docs that tell you how. All this covered in the openstreetmap docs but you have to actually do some work to make it happen so instead of asking us how to write code for you why don't you just experiment on your own to get the results you want? 

  • 0
18 hours ago, FrankenSter said:

How? Read the docs that tell you how. All this covered in the openstreetmap docs but you have to actually do some work to make it happen so instead of asking us how to write code for you why don't you just experiment on your own to get the results you want? 

good day dear Frankenster - thanks for the quick reply. 

 

i do some tests. i will digg deeper. 

 

again - thanks for the encouraging to do so. 

 

have a good day

  • 0
6 hours ago, tarifa said:

good day dear Frankenster - thanks for the quick reply. 

 

i do some tests. i will digg deeper. 

 

again - thanks for the encouraging to do so. 

 

have a good day

Ya, doing your own work and learning would be a good thing for you for a change. 

  • 0
31 minutes ago, tarifa said:

howdy - Frankster your pretty new here - food for thought 

Your are novice - and a cool dude...

 

 

For someone who cannot even setup a simple webserver with Wordpress without posting 500 errors, it's a bit rich you calling someone a novice.

  • Like 1
  • 0
2 hours ago, NJ Louch said:

For someone who cannot even setup a simple webserver with Wordpress without posting 500 errors, it's a bit rich you calling someone a novice.

thx for the reply - 

 

oh no - with novice i meant new to this site. 

i never ever would talk about others like so:  - you have questions -  and i am the cool dude 

 

This is seriously  a nasty habit.  

 

You have 41 K postings  i have 299  so i think you are very very clever -   since you have spend 150 x times here. ... 

 

cheers 

 

 

  • 0
9 hours ago, tarifa said:

howdy - Frankster your pretty new here - food for thought 

Your are novice - and a cool dude...

 

 

What are you talking about with your food for thought comment? Ya, I'm new here so what? 

 

You're a novice at reading instructions but not at wanting people to do your job for you. Bro, youve been 

using osm for how long? How many yrs? 

  • 0

hello dear Fankster hello dear NJ-Loch, 

 

 

 

seven years buddy - and you can read my history here .- with 

- fields of interest and 
- some examples and own experiments. etc. etx. 

 

see my wikipage - which shows some of my interests in osm-things: https://wiki.openstreetmap.org/wiki/User:Tagtheworld

 

and besides - some more of my interests - in knowledge-ecology and networks of innovation. http://flosshub.org/biblio   - with the collected papers of the research... of the last 35 years.. - this is the center of open-source-meta-reflection. 

 

 

...back to openstreetmap - one of my interests - and to my wiki-page covering the topics of interests: https://wiki.openstreetmap.org/wiki/User:Tagtheworld 


belive me: the osm is not the only field of interest - besides this i have lots of more. 

and yes: since the development is changing things constantly - i feel like a novice - even after so long time. 

btw my other interests are - learning ... and i am interested in communities of practice (cop) 

 

see here the fileds of interest in networks of knowldge and innovation:  cf: https://wiki.openstreetmap.org/wiki/User:Tagtheworld/Open-source-research

 

some topics and some keywords that might describe this field of interest a bit. 

 

- discourse of universe / universe of discourse (G.H.Mead)
- Cathedral or Bazaar - Eric Raymond
- Network of innovation - Illka Tuomi
- Community of Practice CoP Lave & Wenger and furthermore...- there are even more interesting concepts:
LPP: Building upon Lave and Wenger's theory of legitimate peripheral participation (LPP), this paper offers a longitudinal investigation of one OSS community in which sustained participation is hypothesized to be associated with the coevolution of two major elements of LPP theory: "situated learning" (the process of acting knowledgeably and purposefully in the world) and "identity construction" (the process of being identified within the community).
SECI model of knowledge dimensions: Nonaka Takeuchi The SECI model of knowledge dimensions is a model of knowledge creation that explains how tacit and explicit knowledge are converted into organisational knowledge. The SECI model distinguishes four knowledge dimensions – socialization, externalization, combination, and internalization – which together form the acronym "SECI". The SECI model was originally developed by Ikujiro Nonaka in 1990 and later further refined by Hirotaka Takeuchi.
liminal approach – cf. the movement of individuals engaged in open source communities. open source communities and growing body of knowledge on corporate engagement in open source communities, our understanding of the movements of individuals within these communities is limited. To analyze these movements, we build on Arnold Van Gennep and Victor Turners’ theories on liminality. Through this lens, we build an understanding of the movements of individual members within open source communities.


so - i myself regard me as a learner - .... 

and i will be probably a learner till the end of my live. 

but this might be a good thing. 

 

 

that said - i am glad to be in this community - i like the free and open minded people and the idea sharing and exchange. 

i like the exchange and the friendly commnity.... 

 

on a sidenote: i am member of stackoverflow - and dev.to too:  but regarding the atmoshere in the various communities of practice (cop senso lave & wenger) might be rearded different. 

 

if we compare 

neowin.net 

dev.to 

stackoverflow (so) then we have very different communities of practice (cop senso lave & wenger)

 

 

there -(at dev.to is a bit different - compaed to stackoverflow (so) 


to deepen these ideas see for the further ideas here: https://dev.to/peledzohar/differences-between-dev-and-stackoverflow-6o3

Quote

 


In Dev, we get to write articles - in Stackoverflow, we write questions and answers.

In Dev, we have hearts and unicorns - in Stackoverflow we have down votes.

In Dev, discussion is encouraged - in Stackoverflow, comments aren't for discussion. You'll get banished to the chat.

In Dev, we can write (almost) anything we want - in Stackoverflow, your post gets closed as off topic and deleted.

In Dev, human interaction is encouraged - in Stackoverflow, words like "Thanks" and "Good day" in your post are considered as noise.

In Dev, the community is all about the developers - in Stackoverflow, we are only here for the questions and answers.

In Dev, every person is considered equal - in Stackoverflow, We're keeping score.

In Dev, we're here to write, read, communicate and share ideas - in Stackoverflow, we're here to solve problems.

This post was inspired by a sketch of one of my personal all times favorites comedians - George Carlin. I know I'm not half as funny as he was, but I hope I did make you smile.

And yes - neowin seems to be a community with open mindes ppl - here - at this site discussion is encouraged - it is a great place… 
- and here we have the free discussion and the option to write a question - without being downvoted.. 
for me this is pretty important: - i need this method and this ability to write. 

 


note: Heinrich von Kleist a german novelist talks about the gradual production of thoughts  cf https://pure.mpg.de/rest/items/item_2352284/component/file_2352283/content - sorry; only in German). To develope a thought it is (at least to me) very important to use free speech.. without limitation or the SO based regulations… 
and to avoid a misunderstanding: the idea is not to steal the content from SO - but the idea to extract some stuff in order to create them to longer content with explanations etc. etx.  see such an example with enrichment and explantion…  cf https://stackoverflow.com/questions/60885198/beautifulsoup-web-scrape-get-children/60886597#comment107723844_60886597 - very interesting - it is a great example..


have a great day - and stay at home, stay safe,  stay healthy,;)

regards, 

 

 

 

 

Edited by tarifa
  • 0
7 hours ago, tarifa said:

hello dear Fankster hello dear NJ-Loch, 

 

 

 

seven years buddy - and you can read my history here .- with 

- fields of interest and 
- some examples and own experiments. etc. etx. 

 

see my wikipage - which shows some of my interests in osm-things: https://wiki.openstreetmap.org/wiki/User:Tagtheworld

 

and besides - some more of my interests - in knowledge-ecology and networks of innovation. http://flosshub.org/biblio   - with the collected papers of the research... of the last 35 years.. - this is the center of open-source-meta-reflection. 

 

 

...back to openstreetmap - one of my interests - and to my wiki-page covering the topics of interests: https://wiki.openstreetmap.org/wiki/User:Tagtheworld 


belive me: the osm is not the only field of interest - besides this i have lots of more. 

and yes: since the development is changing things constantly - i feel like a novice - even after so long time. 

btw my other interests are - learning ... and i am interested in communities of practice (cop) 

 

see here the fileds of interest in networks of knowldge and innovation:  cf: https://wiki.openstreetmap.org/wiki/User:Tagtheworld/Open-source-research

 

some topics and some keywords that might describe this field of interest a bit. 

 

- discourse of universe / universe of discourse (G.H.Mead)
- Cathedral or Bazaar - Eric Raymond
- Network of innovation - Illka Tuomi
- Community of Practice CoP Lave & Wenger and furthermore...- there are even more interesting concepts:
LPP: Building upon Lave and Wenger's theory of legitimate peripheral participation (LPP), this paper offers a longitudinal investigation of one OSS community in which sustained participation is hypothesized to be associated with the coevolution of two major elements of LPP theory: "situated learning" (the process of acting knowledgeably and purposefully in the world) and "identity construction" (the process of being identified within the community).
SECI model of knowledge dimensions: Nonaka Takeuchi The SECI model of knowledge dimensions is a model of knowledge creation that explains how tacit and explicit knowledge are converted into organisational knowledge. The SECI model distinguishes four knowledge dimensions – socialization, externalization, combination, and internalization – which together form the acronym "SECI". The SECI model was originally developed by Ikujiro Nonaka in 1990 and later further refined by Hirotaka Takeuchi.
liminal approach – cf. the movement of individuals engaged in open source communities. open source communities and growing body of knowledge on corporate engagement in open source communities, our understanding of the movements of individuals within these communities is limited. To analyze these movements, we build on Arnold Van Gennep and Victor Turners’ theories on liminality. Through this lens, we build an understanding of the movements of individual members within open source communities.


so - i myself regard me as a learner - .... 

and i will be probably a learner till the end of my live. 

but this might be a good thing. 

 

 

that said - i am glad to be in this community - i like the free and open minded people and the idea sharing and exchange. 

i like the exchange and the friendly commnity.... 

 

on a sidenote: i am member of stackoverflow - and dev.to too:  but regarding the atmoshere in the various communities of practice (cop senso lave & wenger) might be rearded different. 

 

if we compare 

neowin.net 

dev.to 

stackoverflow (so) then we have very different communities of practice (cop senso lave & wenger)

 

 

there -(at dev.to is a bit different - compaed to stackoverflow (so) 


to deepen these ideas see for the further ideas here: https://dev.to/peledzohar/differences-between-dev-and-stackoverflow-6o3


note: Heinrich von Kleist a german novelist talks about the gradual production of thoughts  cf https://pure.mpg.de/rest/items/item_2352284/component/file_2352283/content - sorry; only in German). To develope a thought it is (at least to me) very important to use free speech.. without limitation or the SO based regulations… 
and to avoid a misunderstanding: the idea is not to steal the content from SO - but the idea to extract some stuff in order to create them to longer content with explanations etc. etx.  see such an example with enrichment and explantion…  cf https://stackoverflow.com/questions/60885198/beautifulsoup-web-scrape-get-children/60886597#comment107723844_60886597 - very interesting - it is a great example..


have a great day - and stay at home, stay safe,  stay healthy,;)

regards, 

 

 

 

 

What are you even talking about? I don't care about your supposed resume what you read or why and I doubt anyone else does either. The only thing I get from above is that the other forums make you actually work, and you like it here where you don't actually have to.

 

 You admit you've been at this for 7 yrs, and haven't bothered to read their docs? Or be able to do simple mapping, which is what the entire setup does? And I'm sure not your buddy so don't address me as one.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • The 2TB Samsung 990 PRO NVMe SSD hits lowest price in over three months by Sayan Sen Yesterday, we covered a really good deal wherein you can get a 4TB TeamGroup T-FORCE G50 NVMe PCIe Gen4 SSD for a low price of just $400 with a special discount coupon. That's just $100 per TB, making it a very good offer during these hard times. The deal is still live, so you can check it out in its dedicated article here if you do not want to miss out. Meanwhile, if you don't have that kind of budget but still wish to buy an SSD for a good price, the 2TB variant of the TeamGroup SSD at $280 its lowest price in over three months. Meanwhile, those seeking 2TB but faster performance can check out Samsung's 990 PRO, which has hit the lowest price also in the last quarter or so, as it's on sale for $370 (purchase links under the specs table down below). Thus, you want a faster drive, get the 990 Pro, or you want more capacity, grab the TeamGroup 4TB linked in the first para. The 990 PRO is a PCIe Gen4 NVMe SSD and still one of the fastest drives available today for under $500. Speaking of fast, sequential reads and writes are rated at 7450 MB/s and 6900 MB/s, respectively. The random throughputs for reads and writes are 1400K IOPS and 1550K IOPS, respectively. The 990 PRO is based on Samsung's 7th Gen V-NAND flash, and it too is TLC. It packs 2 gigs of LPDDR4 DRAM cache, which helps the random performance. The endurance rating for this is 1200 TBW (terabytes written), which should be sufficient for most users. The Samsung 990 PRO is compatible with the PlayStation 5, but if you are going to use the 990 PRO on a PC, check out the Samsung Magician app that lets you track your drive's health, update its firmware, customize various settings, and more. The tech specs are given below: Specification TeamGroup T-FORCE G50 2TB Samsung 990 PRO 2TB Interface PCIe 4.0 x4, NVMe 1.4 PCIe Gen 4.0 x4, NVMe 2.0 Form Factor M.2 2280 M.2 2280 Controller InnoGrit Controller Samsung In-house Controller NAND Flash 3D TLC 3D TLC DRAM Cache None (HMB supported) 2GB LPDDR4 Sequential Read (Max) 5,000 MB/s 7,450 MB/s Sequential Write (Max) 4,500 MB/s 6,900 MB/s Random Read (4K) Up to 600,000 IOPS Up to 1,400,000 IOPS Random Write (4K) Up to 700,000 IOPS Up to 1,550,000 IOPS TBW (Endurance) 1,300 TBW 1,200 TBW MTBF 3,000,000 hours 1,500,000 hours Operating Temperature 0°C to 70°C 0°C to 70°C Storage Temperature -40°C to 85°C -40°C to 85°C Shock Resistance 1,500G / 0.5ms 1,500G / 0.5ms Heatsink Patented Graphene Heat Spreader No Get them at the links below: Samsung 990 PRO SSD 2TB (MZ-V9P2T0B/AM): $369.99 (Sold and Shipped by Amazon US) TEAMGROUP T-Force G50 2TB SSD (TM8FFE002T0C129): $279.99 (Sold by TeamGroup, Shipped by Amazon US) Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • If you can't spell a simple word that 2nd graders learn, your entire argument is suspect.
    • And here goes the "Won't someone think of the children" brigade. Get stuffed mate. This has NOTHING to do with making the internet safe. It's about tracking adults, spying on your online activity, and sending the boys around when they don't like something you post. Also, again, parliament have voted TWICE against this, and Starmer is going ahead anyway. THAT is anti-democratic bullsh**. They will use this law to track you, they will use this law to control you, and they will use this law to punish you if they don't like what you do, even if it's legal. And your data? Say bye bye to that. It'll be on the darkweb in weeks. I'm not some rando online. I've been an IT professional for 40 years, many of it in security. I know exactly what this means and what will happen to your data. I do not consent and I will not comply.
    • "...but it may not be Microsoft's fault" seems like a reasonable way to tease what is going on without leaving the user with a false impression that an update is the problem. A title isn't a summery, it is meant to entice the user to read the article. It should not contain a misleading premise; which this title does not. You could maybe complain that the first paragraph should have included that detail. The writing style popularized over 100 years ago in newspapers will cover the most important information as soon as possible with details and nuance added later; the idea being that with each new paragraph you have less of the reader's focus.
    • Samsung Galaxy XR arrives in the UK with new AI and enterprise features by Fiza Ali Samsung is bringing its Galaxy XR headset to the UK several months after the device made its debut as the first headset built on Google's Android XR platform. The headset was first teased in late 2024 alongside Google's introduction of Android XR before making its commercial debut in 2025. Developed in collaboration with Google and Qualcomm, Galaxy XR combines mixed reality experiences with Gemini-powered AI features, allowing users to interact with digital content using voice, gestures, and visual inputs. While the hardware itself remains largely unchanged from the version Samsung unveiled last year, the company is using the UK launch to spotlight several software enhancements that have arrived through recent updates. Among the most notable additions is deeper integration with Google's ecosystem. Galaxy XR users can explore destinations through Google Maps' Immersive View, receiving AI-powered recommendations and contextual information from Gemini while navigating virtual environments. Furthermore, entertainment experiences have also expanded; users can watch 180-degree and 360-degree videos on YouTube, browse spatial content converted into 3D, and ask Gemini questions about on-screen content without interrupting playback. Samsung is also highlighting mixed-reality features such as Circle to Search, which allows users to identify real-world objects through hand gestures while using the headset's video pass-through mode. Another feature automatically converts photos and videos into spatial 3D experiences. Moreover, the headset now also supports Android Enterprise, allowing organisations to manage deployments using existing Android management tools. Annika Bizon, Vice President, Product and Marketing, Mobile Experience, Samsung UK & Ireland, talked about the device, stating: The headset is powered by Qualcomm's Snapdragon XR2+ Gen 2 platform and features dual 4K Micro-OLED displays. The tech giant says that users can expect up to 2.5 hours of battery life. Samsung also confirmed that Galaxy XR will continue receiving software and security updates as the company works alongside Google and Qualcomm to expand the Android XR ecosystem. Galaxy XR is now available for pre-order and will go on sale on 8 July. Customers interested in trying the headset before launch can visit Samsung KX in London and selected Samsung Experience Stores from 17 June. Finally, the company will also host a livestream on 19 June showcasing the headset's capabilities and answering questions from prospective customers.
  • Recent Achievements

    • First Post
      Jocimo earned a badge
      First Post
    • Week One Done
      suprememobiles48 earned a badge
      Week One Done
    • One Month Later
      Windows Guy earned a badge
      One Month Later
    • One Month Later
      Prasann earned a badge
      One Month Later
    • Week One Done
      Prasann earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      519
    2. 2
      +Edouard
      174
    3. 3
      PsYcHoKiLLa
      92
    4. 4
      Steven P.
      82
    5. 5
      ATLien_0
      70
  • Tell a friend

    Love Neowin? Tell a friend!