Geospatial Data
Country data
You can search for any country by its name and get all the geographical information about it, including the multipolygons of country borders. Also, using data obtained with this command in other commands, you can get the centroid of the country shape. At the moment, you can search only for English name of the country.
This command only works in the geo context and after execution takes you to the page context, where you can go through the XML structure with the data and extract the information you need and save it to the variables or object fields.
# SWITCHING TO THE GEO CONTEXT
- geo:
provider: osm
do:
# Looking for country with name United States of America
- country:
name: United States of America
do:
Time | Level | Message |
---|---|---|
2018-05-29 00:07:11:757 | info | Scrape is done |
2018-05-29 00:07:11:635 | debug | Page content: ... |
2018-05-29 00:07:10:185 | info | Retrieving page (POST/JSON): https://lz4.overpass-api.de/api/interpreter |
2018-05-29 00:07:10:176 | debug | Area name: United States of America |
2018-05-29 00:07:10:168 | debug | Getting geo information about country |
2018-05-29 00:07:10:159 | debug | Setting up geo provider: osm |
2018-05-29 00:07:10:150 | info | Starting scrape |
2018-05-29 00:07:10:125 | debug | Setting up default proxy |
2018-05-29 00:07:10:115 | debug | Setting up surf |
2018-05-29 00:07:10:082 | info | Starting digger: 1 [2158] |
<html>
<head></head>
<body>
<body_safe>
<elements>
<id>148838</id>
<members>
<ref>158368533</ref>
<role>admin_centre</role>
<type>node</type>
</members>
...
<members>
<ref>162069</ref>
<role>subarea</role>
<type>relation</type>
</members>
<tags>
<iso3166-1>US</iso3166-1>
<iso3166-1_alpha2>US</iso3166-1_alpha2>
<iso3166-1_alpha3>USA</iso3166-1_alpha3>
<iso3166-1_numeric>840</iso3166-1_numeric>
<admin_level>2</admin_level>
<alt_name_vi>Hoa Kì;Mỹ;Mĩ</alt_name_vi>
<border_type>national</border_type>
<boundary>administrative</boundary>
<default_language>en</default_language>
<flag>http://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg</flag>
<gnis_feature_id>1890467</gnis_feature_id>
<name>United States of America</name>
<name_ab>Америка Еиду Аштатқәа</name_ab>
<name_ace>Amirika Carékat</name_ace>
<name_af>Verenigde State van Amerika</name_af>
<name_als>Vereinigte Schtaate vo Amerika</name_als>
<name_am>የተባበሩት የአሜሪካ ግዛቶች</name_am>
<name_an>Estatos Unitos d'America</name_an>
<name_ang>Geānlǣtan Rīcu American</name_ang>
<name_ar>الولايات المتّحدة الأمريكيّة</name_ar>
<name_arc>ܐܬܪܘܬܐ ܡܚܝܕܐ ܕܐܡܪܝܟܐ</name_arc>
<name_arz>امريكا</name_arz>
<name_as>মাৰ্কিন যুক্তৰাষ্ট্ৰ</name_as>
<name_ast>Estaos Xuníos d'América</name_ast>
<name_av>Америкалъул Цолъарал Штатал</name_av>
<name_ay>Istadus Unidus</name_ay>
<name_az>Amerika Birləşmiş Ştatları</name_az>
<name_ba>Америка Ҡушма Штаттары</name_ba>
<name_bar>Vaeinigtn Staatn vo Amerika</name_bar>
<name_bat-smg>JAV</name_bat-smg>
<name_bcl>Estados Unidos</name_bcl>
<name_be>Злучаныя Штаты Амерыкі</name_be>
<name_be-tarask>Злучаныя Штаты Амэрыкі</name_be-tarask>
<name_bg>Съединени американски щати</name_bg>
<name_bi>Yunaeted Stet blong Amerika</name_bi>
<name_bm>Amerika ka Kelenyalen Jamanaw</name_bm>
<name_bn>মার্কিন যুক্তরাষ্ট্র</name_bn>
<name_bo>ཨ་མེ་རི་ཁ་རྒྱལ་ཕྲན་མཉམ་འབྲེལ་རྒྱལ་ཁབ།</name_bo>
<name_bpy>তিলপারাষ্ট্র</name_bpy>
<name_br>Stadoù-Unanet Amerika</name_br>
<name_bs>Sjedinjene Američke Države</name_bs>
<name_bxr>Американ Нэгэдэһэн Улас</name_bxr>
<name_ca>Estats Units d'Amèrica</name_ca>
<name_cbk-zam>Estados Unidos de America</name_cbk-zam>
<name_cdo>Mī-lé-giĕng Hăk-cé̤ṳng-guók</name_cdo>
<name_ce>Iамерка пачхьалк</name_ce>
<name_ceb>Estados Unidos sa Amerika</name_ceb>
<name_chr>ᏌᏊᎢᏳᎾᎵᏍᏔᏅᏍᎦᏚᎩ ᎾᎿ ᎠᎺᏰᏟ</name_chr>
<name_chy>United States</name_chy>
<name_ckb>وڵاتە یەکگرتووەکان</name_ckb>
<name_co>Stati Uniti d'America</name_co>
<name_crh>Amerika Qoşma Ştatları</name_crh>
<name_cs>Spojené státy americké</name_cs>
<name_csb>Zjednóné Kraje Americzi</name_csb>
<name_cu>Амєрика́ньскꙑ Ѥдьнѥнꙑ́ Дрьжа́вꙑ</name_cu>
<name_cv>Америкăри Пĕрлешӳллĕ Штатсем</name_cv>
<name_cy>Unol Daleithiau America</name_cy>
<name_da>Amerikas Forenede Stater</name_da>
<name_de>Vereinigte Staaten von Amerika</name_de>
<name_diq>Dewletê Amerikayê Yewbiyayey</name_diq>
<name_dsb>Zjadnośone staty Ameriki</name_dsb>
<name_dv>އެމެރިކާ</name_dv>
<name_dz>ཡུ་ནའིཊེཊ་སི་ཊེས</name_dz>
<name_ee>United States</name_ee>
<name_el>Ηνωμένες Πολιτείες της Αμερικής</name_el>
<name_eml>Stat Unî</name_eml>
<name_en>United States of America</name_en>
<name_eo>Usono</name_eo>
<name_es>Estados Unidos de América</name_es>
<name_et>Ameerika Ühendriigid</name_et>
<name_eu>Ameriketako Estatu Batuak</name_eu>
<name_ext>Estaus Uñíus d'América</name_ext>
<name_fa>ایالات متحده آمریکا</name_fa>
<name_ff>Dowlaaji Dentuɗi</name_ff>
<name_fi>Amerikan yhdysvallat</name_fi>
<name_fiu-vro>Ameeriga Ütisriigiq</name_fiu-vro>
<name_fo>Sambandsríkið Amerika</name_fo>
<name_fr>États-Unis d'Amérique</name_fr>
<name_frp>Ètats-Unis d’Amèrica</name_frp>
<name_frr>Feriind Stoote foon Ameerika</name_frr>
<name_fur>Stâts Unîts di Americhe</name_fur>
<name_fy>Feriene Steaten fan Amearika</name_fy>
<name_ga>Stáit Aontaithe Mheiriceá</name_ga>
<name_gag>Amerika Birleşik Devletläri</name_gag>
<name_gan>美國</name_gan>
<name_gd>Na Stàitean Aonaichte</name_gd>
<name_gl>Estados Unidos de América</name_gl>
<name_glk>امریکا</name_glk>
<name_gn>Tetã peteĩ reko Amérikagua</name_gn>
<name_gu>સંયુક્ત રાજ્ય અમેરિકા</name_gu>
<name_gv>Steatyn Unnaneysit America</name_gv>
<name_ha>kunkiyar taraiyar Amurika</name_ha>
<name_hak>Mî-li-kiên Ha̍p-chung-koet</name_hak>
<name_haw>‘Amelika Hui Pū ‘ia</name_haw>
<name_he>ארצות הברית</name_he>
<name_hi>संयुक्त राज्य अमेरिका</name_hi>
<name_hif>United States</name_hif>
<name_hr>Sjedinjene Američke Države</name_hr>
<name_hsb>Zjednoćene staty Ameriki</name_hsb>
<name_ht>Etazini</name_ht>
<name_hu>Amerikai Egyesült Államok</name_hu>
<name_hy>Ամերիկայի Միացյալ Նահանգներ</name_hy>
<name_ia>Statos Unite de America</name_ia>
<name_id>Amerika Serikat</name_id>
<name_ie>Unit States de America</name_ie>
<name_ig>Njikota Obodo Amerika</name_ig>
<name_ik>United States of America</name_ik>
<name_ilo>stados Unidos iti Amerika</name_ilo>
<name_io>Unionita Stati di Amerika</name_io>
<name_is>Bandaríki Norður-Ameríku</name_is>
<name_it>Stati Uniti d'America</name_it>
<name_iu>ᐊᒥᐊᓕᑲ</name_iu>
<name_ja>アメリカ合衆国</name_ja>
<name_jbo>.iunaited.steits.</name_jbo>
<name_jv>Amérika Sarékat</name_jv>
<name_ka>ამერიკის შეერთებული შტატები</name_ka>
<name_kaa>Amerika Qurama Shtatları</name_kaa>
<name_kab>Iwunak Yedduklen</name_kab>
<name_kbd>Америкэ Штат Зэгуэт</name_kbd>
<name_ki>United States</name_ki>
<name_kk>Америка Құрама Штаттары</name_kk>
<name_kl>Naalagaaffeqatigiit</name_kl>
<name_km>សហរដ្ឋអាមេរិក</name_km>
<name_kn>ಅಮೇರಿಕ ಸಂಯುಕ್ತ ಸಂಸ್ಥಾನ</name_kn>
<name_ko>미국</name_ko>
<name_koi>Америкаись Ӧтлаасьӧм Штаттэз</name_koi>
<name_krc>Американы Бирлешген Штатлары</name_krc>
<name_ks>संयुक्त राज्य अमेरिका</name_ks>
<name_ksh>Vereenichde Staate van Amerika</name_ksh>
<name_ku>Dewletên Yekbûyî yên Amerîkayê</name_ku>
<name_kv>Америкаса Ӧтувтӧм Штатъяс</name_kv>
<name_kw>Statys Unys Amerika</name_kw>
<name_ky>Америка Кошмо Штаттары</name_ky>
<name_la>Civitates Foederatae Americae</name_la>
<name_lad>Estatos Unitos d'Amerika</name_lad>
<name_lb>Vereenegt Staate vun Amerika</name_lb>
<name_lbe>Американал ЦачӀунхьу Штатру</name_lbe>
<name_lez>Америкадин Садхьанвай Штатар</name_lez>
<name_lg>Amereka</name_lg>
<name_li>Vereinegde State van Amerika</name_li>
<name_lij>Stati Unïi d'America</name_lij>
<name_lmo>Stat Ünì d'America</name_lmo>
<name_ln>Lisangá lya Ameríka</name_ln>
<name_lo>ສະຫະລັດອາເມລິກາ</name_lo>
<name_lt>Jungtinės Amerikos Valstijos</name_lt>
<name_ltg>Amerikys Saškierstuos Vaļsteibys</name_ltg>
<name_lv>Amerikas Savienotās Valstis</name_lv>
<name_map-bms>Amerika Serikat</name_map-bms>
<name_mdf>Америконь Аймакнень Соткссна</name_mdf>
<name_mg>Etazonia</name_mg>
<name_mhr>Америкысе Ушымо Штатвлак</name_mhr>
<name_mi>Hononga-o-Amerika</name_mi>
<name_min>Amerika Sarikat</name_min>
<name_mk>Соединети Американски Држави</name_mk>
<name_ml>അമേരിക്കന് ഐക്യനാടുകള്</name_ml>
<name_mn>Америкийн Нэгдсэн Улс</name_mn>
<name_mr>अमेरिकेची संयुक्त संस्थाने</name_mr>
<name_mrj>Америкын Ушымы Штатвлӓжӹ</name_mrj>
<name_ms>Amerika Syarikat</name_ms>
<name_mt>Stati Uniti tal-Amerika</name_mt>
<name_mwl>Stados Ounidos de la América</name_mwl>
<name_my>အမေရိကန်ပြည်ထောင်စု</name_my>
<name_myv>Американь Вейтьсэндявкс Штаттнэ</name_myv>
<name_mzn>متحده ایالات آمریکا</name_mzn>
<name_na>Eben Merika</name_na>
<name_nah>Tlacetilīlli Tlahtohcāyōtl Ixachitlān</name_nah>
<name_nap>State Aunite d'Amereca</name_nap>
<name_nds>Verenigten Staten vun Amerika</name_nds>
<name_nds-nl>Verienigde Staoten van Amerika</name_nds-nl>
<name_ne>संयुक्त राज्य अमेरिका</name_ne>
<name_new>संयुक्त राज्य अमेरिका</name_new>
<name_nl>Verenigde Staten van Amerika</name_nl>
<name_nn>USA</name_nn>
<name_no>Amerikas forente stater</name_no>
<name_nov>Unionati States de Amerika</name_nov>
<name_nrm>Êtats Unnis d'Améthique</name_nrm>
<name_nso>United States of America</name_nso>
<name_nv>Wááshindoon Bikéyah Ałhidadiidzooígíí</name_nv>
<name_oc>Estats Units d'America</name_oc>
<name_om>USA</name_om>
<name_or>ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା</name_or>
<name_os>Америкæйы Иугонд Штаттæ</name_os>
<name_pa>ਸੰਯੁਕਤ ਰਾਜ ਅਮਰੀਕਾ</name_pa>
<name_pag>Estados Unidos</name_pag>
<name_pam>United States ning America</name_pam>
<name_pap>Estadonan Uni di Merka</name_pap>
<name_pcd>États-Unis Anmérikes</name_pcd>
<name_pdc>Vereenichde Schtaate vun Amerikaa</name_pdc>
<name_pfl>Verainischde Schdaade vun Ameriga</name_pfl>
<name_pih>Yunitid Staits</name_pih>
<name_pl>Stany Zjednoczone</name_pl>
<name_pms>Stat Unì d'América</name_pms>
<name_pnb>امریکہ</name_pnb>
<name_ps>د امريکا متحده ايالات</name_ps>
<name_pt>Estados Unidos da América</name_pt>
<name_qu>Hukllachasqa Amirika Suyukuna</name_qu>
<name_rm>Stadis Unids da l'America</name_rm>
<name_rn>Leta Zunze Ubumwe za Amerika</name_rn>
<name_ro>Statele Unite ale Americii</name_ro>
<name_roa-tara>Statère Aunìte d'Americhe</name_roa-tara>
<name_ru>Соединённые Штаты Америки</name_ru>
<name_rue>Споєны Штаты Америцькы</name_rue>
<name_rw>Leta Zunze Ubumwe z’Amerika</name_rw>
<name_sa>संयुक्तानि राज्यानि</name_sa>
<name_sah>Америка Холбоһуктаах Штаттара</name_sah>
<name_sc>Istados Unidos de America</name_sc>
<name_scn>Stati Uniti</name_scn>
<name_sco>Unitit States o Americae</name_sco>
<name_sd>آمريڪا</name_sd>
<name_se>Amerihká ovttastuvvan stáhtat</name_se>
<name_sg>ÂKödörö-ôko tî Amerîka</name_sg>
<name_sh>Sjedinjene Američke Države</name_sh>
<name_si>අ'මෙරිකාවේ එක්සත් රාජ්යයන්</name_si>
<name_sk>Spojené štáty americké</name_sk>
<name_sl>Združene države Amerike</name_sl>
<name_sm>Iunaite Sitete o Amerika</name_sm>
<name_sn>United States of America</name_sn>
<name_so>Mareykanka</name_so>
<name_sq>Shtetet e Bashkuara të Amerikës</name_sq>
<name_sr>Сједињене Америчке Државе</name_sr>
<name_srn>Kondre Makandrameki</name_srn>
<name_ss>IMelika</name_ss>
<name_stq>Fereende Stoaten fon Amerikoa</name_stq>
<name_su>Amérika Sarikat</name_su>
<name_sv>Amerikas Förenta Stater</name_sv>
<name_sw>Muungano wa Madola ya Amerika</name_sw>
<name_szl>Zjednoczůne Sztaty Ameriki</name_szl>
<name_ta>அமெரிக்க ஐக்கிய நாடு</name_ta>
<name_te>అమెరికా సంయుక్త రాష్ట్రాలు</name_te>
<name_tet>Estadu Naklibur Sira Amérika Nian</name_tet>
<name_tg>Иёлоти Муттаҳидаи Амрико</name_tg>
<name_th>สหรัฐอเมริกา</name_th>
<name_tk>Amerikanyň Birleşen Ştatlary</name_tk>
<name_tl>Estados Unidos</name_tl>
<name_tn>USA</name_tn>
<name_to>Puleʻanga Fakataha 'o 'Amelika</name_to>
<name_tpi>Yunaitet Stet bilong Amerika</name_tpi>
<name_tr>Amerika Birleşik Devletleri</name_tr>
<name_ts>United States</name_ts>
<name_tt>Америка Кушма Штатлары</name_tt>
<name_tw>USA</name_tw>
<name_ty>Fenua Marite</name_ty>
<name_tzl>Estats Viensiçeschti d'America</name_tzl>
<name_udm>Америкалэн Огазеяськем Штатъёсыз</name_udm>
<name_ug>ئامېرىكا قوشما شتاتلىرى</name_ug>
<name_uk>Сполучені Штати Америки</name_uk>
<name_ur>ریاستہائے متحدہ امریکہ</name_ur>
<name_uz>Amerika Qoʻshma Shtatlari</name_uz>
<name_vec>Stati Unìi de la Mèrica</name_vec>
<name_vep>Amerikan Ühtenzoittud Valdkundad</name_vep>
<name_vi>Hoa Kỳ</name_vi>
<name_vls>Verênigde Stoaten van Amerika</name_vls>
<name_vo>Lamerikän</name_vo>
<name_wa>Estats Unis d' Amerike</name_wa>
<name_war>Estados Unidos</name_war>
<name_wo>Diwaan-yu-Bennoo yu Aamerig</name_wo>
<name_wuu>美国</name_wuu>
<name_xal>Америкин Ниицәтә Орн Нутгуд</name_xal>
<name_xh>IYunayithedi Steyitsi</name_xh>
<name_xmf>ამერიკაშ აკოართაფილი შტატეფი</name_xmf>
<name_yi>פאראייניקטע שטאטן פון אמעריקע</name_yi>
<name_yo>Àwọn Ìpínlẹ̀ Aṣọ̀kan Amẹ́ríkà</name_yo>
<name_za>Meijgoz</name_za>
<name_zea>Vereênigde Staeten</name_zea>
<name_zh>美利坚合众国</name_zh>
<name_zh-classical>美利堅合眾國</name_zh-classical>
<name_zh-min-nan>America Ha̍p-chiòng-kok</name_zh-min-nan>
<name_zh-yue>即美利堅合眾國</name_zh-yue>
<name_zu>IMelika</name_zu>
<official_name_cs>Spojené státy americké</official_name_cs>
<official_name_eo>Unuiĝintaj Ŝtatoj de Ameriko</official_name_eo>
<official_name_pl>Stany Zjednoczone Ameryki</official_name_pl>
<official_name_vi>Hợp chúng quốc Hoa Kỳ;Hợp chúng quốc Hoa Kì;Hợp chủng quốc Hoa Kỳ;Hợp chủng quốc Hoa Kì</official_name_vi>
<old_name_ru>Северо-Американские Соединённые Штаты</old_name_ru>
<old_name_vi>Mỹ Lợi Kiên;Ma Ly Căn;Nhã Di Lý</old_name_vi>
<old_short_name_ru>САСШ</old_short_name_ru>
<short_name_cs>Spojené státy</short_name_cs>
<short_name_ru>США</short_name_ru>
<short_name_vi>Mỹ</short_name_vi>
<type>boundary</type>
<wikidata>Q30</wikidata>
<wikipedia>en:United States</wikipedia>
</tags>
<type>relation</type>
</elements>
<generator>Overpass API 0.7.55.2 3ab0d275</generator>
<osm3s>
<copyright>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</copyright>
<timestamp_osm_base>2018-05-30T10:54:02Z</timestamp_osm_base>
</osm3s>
<version>0.6</version>
</body_safe>
</body>
</html>
In next lesson we will learn more about OSM relations and methods to work with them.