﻿{"id":5292,"date":"2018-05-17T07:16:56","date_gmt":"2018-05-17T05:16:56","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=5292"},"modified":"2018-10-17T12:51:13","modified_gmt":"2018-10-17T10:51:13","slug":"geocoding-addresses-with-2-8-qgis","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/geocoding-addresses-with-2-8-qgis\/","title":{"rendered":"Geocoding Addresses with 2.8 QGis"},"content":{"rendered":"<p>Geocoding addresses allows you to transform addresses into a layer of points, from a text info into a spatial info. This is, mainly, used in geomarketing and transport, but due to the development of web applications it proves very useful in almost all areas of GIS.<\/p>\n<p>The\u00a0problem\u00a0with\u00a0geocoding\u00a0is\u00a0not\u00a0technical but\u00a0related to the evolution\u00a0of techniques and\u00a0available resources.\u00a0If\u00a0you\u00a0search\u00a0on Google \u00ab\u00a0g\u00e9ocodage adresses France \u00bb\u00a0you\u00a0will get\u00a0some very detailed tutorials,\u00a0but\u00a0often\u00a0out of date.\u00a0Here is\u00a0such\u00a0a\u00a0tutorial\u00a0to the\u00a0taste\u00a0of the\u00a0month\u00a0of\u00a0May\u00a02015 that we\u00a0will\u00a0update (promised!)\u00a0when\u00a0he\u00a0becomes\u00a0obsolete.<!--more--><\/p>\n<p>It\u00a0is\u00a0possible to\u00a0geocode\u00a0addresses\u00a0from\u00a0QGis\u00a0for\u00a0free.\u00a0There are 2 plugins that\u00a0makes this possible:<br \/>\n-The Geocode plugin displays\u00a0a\u00a0window\u00a0where you can\u00a0retrieve\u00a0an\u00a0address\u00a0and that\u00a0generates\u00a0the\u00a0corresponding geographical\u00a0point.\u00a0It uses\u00a0either\u00a0Google\u00a0or\u00a0Nominatim\u00a0(OpenStreetMap\u2019s)<br \/>\n-the MMQGIS plugin that\u00a0accepts\u00a0an\u00a0input\u00a0table\u00a0as\u00a0a text\u00a0file\u00a0and\u00a0generates\u00a0a\u00a0layer\u00a0of points.\u00a0This plugin uses Google and\u00a0Openstreetmaps,\u00a0or\u00a0a specific\u00a0layer\u00a0of the\u00a0road\u00a0network.<\/p>\n<p>Neither\u00a0plugin\u00a0requires\u00a0a\u00a0Google API\u00a0key,\u00a0just the installation of\u00a0the plugin.<\/p>\n<p>The first plugin\u00a0is\u00a0very simple: install, launch,\u00a0retrieve an\u00a0address\u00a0and\u00a0see\u00a0the\u00a0resulting\u00a0point, here we will discuss how to\u00a0treat\u00a0an\u00a0address\u00a0table.<\/p>\n<p><strong>Plugin installation<\/strong><\/p>\n<p>Click\u00a0Extension -&gt; Install \/\u00a0Manage\u00a0Extensions<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5294\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/geocoding-addresses-with-2-8-qgis\/geo1-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo1.png?fit=630%2C378&amp;ssl=1\" data-orig-size=\"630,378\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"geo1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo1.png?fit=630%2C378&amp;ssl=1\" class=\"alignnone size-medium wp-image-5294\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo1-300x180.png?resize=300%2C180\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo1.png?resize=300%2C180&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo1.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Select\u00a0\u00a0\u00a0<strong><em>mmqgis<\/em><\/strong>\u00a0\u00a0\u00a0then\u00a0\u00a0\u00a0<strong><em>Install<\/em><\/strong>\u00a0<strong><em>the extension<\/em><\/strong>.<\/p>\n<p>Then, you\u00a0will\u00a0have\u00a0a new MMQGIS menu:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5295\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/geocoding-addresses-with-2-8-qgis\/geo2-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo2.png?fit=630%2C164&amp;ssl=1\" data-orig-size=\"630,164\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"geo2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo2.png?fit=630%2C164&amp;ssl=1\" class=\"alignnone size-medium wp-image-5295\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo2-300x78.png?resize=300%2C78\" alt=\"\" width=\"300\" height=\"78\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo2.png?resize=300%2C78&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo2.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong>The<\/strong>\u00a0<strong>data<\/strong>\u00a0<strong>to<\/strong>\u00a0<strong>geocode<\/strong><\/p>\n<p>The format\u00a0used\u00a0to\u00a0enter\u00a0the\u00a0data\u00a0to\u00a0geocode\u00a0is\u00a0the\u00a0text\u00a0format\u00a0<a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/import-csv-qgis\/\">csv<\/a> (comma\u00a0separator).\u00a0As we\u00a0will\u00a0use a web service (either\u00a0google\u00a0or\u00a0OpenStreetMap)\u00a0it is advisable to minimally configurate your\u00a0addresses.<br \/>\nEven\u00a0if\u00a0it\u00a0is\u00a0not essential,\u00a0will\u00a0avoid\u00a0geocoding\u00a0errors\u00a0by creating\u00a0\u00a0\u00a0three fields:\u00a0\u00a0\u00a0<strong>street<\/strong>\u00a0\u00a0\u00a0(\u00a0or\u00a0address\u00a0),\u00a0\u00a0\u00a0<strong>city<\/strong>\u00a0<strong>\u00a0<\/strong>\u00a0and\u00a0\u00a0\u00a0<strong>country<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5296\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/geocoding-addresses-with-2-8-qgis\/geo3-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo3.png?fit=436%2C250&amp;ssl=1\" data-orig-size=\"436,250\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"geo3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo3.png?fit=436%2C250&amp;ssl=1\" class=\"alignnone size-medium wp-image-5296\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo3-300x172.png?resize=300%2C172\" alt=\"\" width=\"300\" height=\"172\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo3.png?resize=300%2C172&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo3.png?w=436&amp;ssl=1 436w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>You\u00a0enter\u00a0the\u00a0field\u00a0names\u00a0on the first\u00a0line\u00a0of the\u00a0file,\u00a0separated\u00a0by commas,\u00a0then\u00a0the\u00a0different\u00a0addresses\u00a0to\u00a0geocode,\u00a0one\u00a0per\u00a0line\u00a0of the\u00a0file\u00a0.<\/p>\n<p><strong>Using the MMQGIS plugin<\/strong><\/p>\n<p>We\u00a0will\u00a0use\u00a0the\u00a0Geocode\u00a0option\u00a0which offers two options:<\/p>\n<p>-Geocode csv with Google \/\u00a0OpenstreetMap<\/p>\n<p>-geocode with Street layer<\/p>\n<p>Here we\u00a0will\u00a0use\u00a0the first option. In order\u00a0to use the\u00a0second one\u00a0you\u00a0must\u00a0own\u00a0a\u00a0road network\u00a0layer\u00a0with\u00a0four fields\u00a0for\u00a0each\u00a0section\u00a0,\u00a0four\u00a0fields\u00a0containing\u00a0the\u00a0mini-max\u00a0numbering\u00a0for\u00a0each\u00a0side\u00a0of the street.<\/p>\n<p>By\u00a0clicking\u00a0on the menu\u00a0<strong><em>\u00a0<\/em><\/strong>\u00a0<strong><em>MMQGIS -&gt; Geocode -&gt; Geocode csv with Google \/<\/em><\/strong>\u00a0<strong><em>OpenstreetMap<\/em><\/strong>\u00a0<strong><em>\u00a0<\/em><\/strong>\u00a0you\u00a0open\u00a0the\u00a0plugin\u00a0configuration\u00a0window:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5297\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/geocoding-addresses-with-2-8-qgis\/geo4-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo4.png?fit=630%2C339&amp;ssl=1\" data-orig-size=\"630,339\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"geo4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo4.png?fit=630%2C339&amp;ssl=1\" class=\"alignnone size-medium wp-image-5297\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo4-300x161.png?resize=300%2C161\" alt=\"\" width=\"300\" height=\"161\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo4.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo4.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>In\u00a0<strong><em>\u00a0<\/em><\/strong>\u00a0<strong><em>Input csv file<\/em><\/strong>,\u00a0click on\u00a0your\u00a0file\u00a0text<\/p>\n<p>Open\u00a0the following\u00a0windows:\u00a0<strong><em>Address<\/em><\/strong>\u00a0<strong><em>field<\/em><\/strong>,\u00a0\u00a0\u00a0<strong><em>City field<\/em><\/strong>\u00a0\u00a0\u00a0and\u00a0\u00a0\u00a0<strong><em>Country field<\/em><\/strong>\u00a0\u00a0\u00a0to\u00a0assign\u00a0them\u00a0the\u00a0names\u00a0of\u00a0your\u00a0 text\u00a0file (\u00a0here\u00a0\u00a0\u00a0<strong><em>street<\/em><\/strong>\u00a0,\u00a0\u00a0\u00a0<strong><em>city<\/em><\/strong>\u00a0<strong>\u00a0<\/strong>\u00a0and\u00a0\u00a0\u00a0<strong><em>country<\/em><\/strong>\u00a0).<\/p>\n<p>Choose the adequate web service to use (<strong><em>Google<\/em><\/strong> or <strong><em>OpenStreetMap<\/em><\/strong>). Google established some limitations as to the quantity of addresses geocoded per day (currently 2500). It is not likely to reach this amount, but if you happen to, see the page <a href=\"https:\/\/translate.google.com\/translate?hl=en&amp;prev=_t&amp;sl=fr&amp;tl=en&amp;u=https:\/\/developers.google.com\/maps\/documentation\/geocoding\/\">https:\/\/developers.google.com\/maps\/documentation\/geocoding\/<\/a>, then try OpenStreetMap.<\/p>\n<p>In\u00a0\u00a0\u00a0<strong><em>Output <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/\">shapefile<\/a><\/em><\/strong>\u00a0\u00a0\u00a0give the name to the\u00a0file\u00a0result<\/p>\n<p>In\u00a0\u00a0\u00a0<strong><em>Not found output list<\/em><\/strong>\u00a0\u00a0\u00a0give a name to the\u00a0file\u00a0text\u00a0where\u00a0the\u00a0addresses\u00a0that\u00a0have\u00a0not\u00a0been\u00a0be\u00a0geocoded will be stored.\u00a0You\u00a0can\u00a0edit this file to\u00a0correct\u00a0the\u00a0addresses\u00a0and\u00a0use it\u00a0as\u00a0file\u00a0for the plugin.<\/p>\n<p>The\u00a0resulting\u00a0shape\u00a0file\u00a0contains\u00a0two\u00a0additional\u00a0fields:<\/p>\n<p><strong><em>addrtype<\/em><\/strong><em>\u00a0<\/em>\u00a0:\u00a0corresponding\u00a0to\u00a0the \u00a0Google element\u00a0\u00a0\u00a0<em>type<\/em>\u00a0\u00a0\u00a0or to the\u00a0\u00a0\u00a0OpenStreetMap\u00a0<em>class<\/em>\u00a0<em>attribute<\/em>\u00a0.\u00a0This field\u00a0indicates\u00a0the type\u00a0of address\u00a0that has\u00a0been\u00a0used\u00a0by the web service (locality, road, place, park, highway, &#8230;)<\/p>\n<p><strong><em>addrlocat<\/em><\/strong>\u00a0<em>\u00a0<\/em>: corresponds to\u00a0the Google\u00a0\u00a0<em>location_type<\/em>\u00a0\u00a0\u00a0 or\u00a0\u00a0\u00a0OpenStreetMap <em>attribute<\/em>\u00a0<em>type<\/em>\u00a0.\u00a0This field\u00a0indicates\u00a0the\u00a0accuracy\u00a0of the location (geometric\u00a0centre, interpolation, approximation, &#8230;)<\/p>\n<p>Once\u00a0launched, the\u00a0command\u00a0displays the\u00a0result\u00a0in the cartographic window:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5298\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/geocoding-addresses-with-2-8-qgis\/geo5-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo5.png?fit=630%2C390&amp;ssl=1\" data-orig-size=\"630,390\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"geo5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo5.png?fit=630%2C390&amp;ssl=1\" class=\"alignnone size-medium wp-image-5298\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo5-300x186.png?resize=300%2C186\" alt=\"\" width=\"300\" height=\"186\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo5.png?resize=300%2C186&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/geo5.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Geocoding addresses allows you to transform addresses into a layer of points, from a text info into a spatial info. This is, mainly, used in geomarketing and transport, but due to the development of web applications&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1260],"tags":[],"class_list":["post-5292","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-1nm","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=5292"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5292\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=5292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=5292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=5292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}