{"id":44629,"date":"2019-04-15T03:01:42","date_gmt":"2019-04-14T17:01:42","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=44629"},"modified":"2019-04-15T06:03:01","modified_gmt":"2019-04-14T20:03:01","slug":"google-places-api-autocomplete-proof-of-concept-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-places-api-autocomplete-proof-of-concept-primer-tutorial\/","title":{"rendered":"Google Places API Autocomplete Proof of Concept Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/google_places_poc.php\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"Google Places API Autocomplete Proof of Concept Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/google_places_api_look.jpg\" title=\"Google Places API Autocomplete Proof of Concept Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Google Places API Autocomplete Proof of Concept Primer Tutorial<\/p><\/div>\n<p>Huge &#8220;where of life&#8221; concept ahead!<\/p>\n<p>Yes, we are trialling the great <a target=_blank title='Google Places API' href='https:\/\/developers.google.com\/places\/web-service\/intro'>Google Places API<\/a>, specifically a proof of concept use of <a target=_blank title='Autocomplete Google Places API' href='https:\/\/developers.google.com\/maps\/documentation\/javascript\/examples\/places-autocomplete'>autocomplete<\/a> logic checking keyboard entered places letter by letter.  Cute, huh?  As you can imagine, &#8220;incumbency&#8221; is big here.  You need a massive database that is constantly building (and thus being refined and expanded) in order to be able to offer this service.  Yes, service, and to use the service you need to apply for a <a target=_blank title='Google Places API Key' href='https:\/\/developers.google.com\/places\/web-service\/get-api-key'>Google Places API Key<\/a> to use this service.  Some traffic is free to you each month should you go ahead and apply for an API Key.<\/p>\n<p>So what is interesting about the &#8220;proof of concept&#8221; <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/google_places_poc.php_GETME\" title=\"google_places_poc.php\">google_places_poc.php<\/a> PHP code <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/google_places_poc.php\" title=\"Click picture\">live run<\/a>?<\/p>\n<ul>\n<li>we use PHP but you could use HTML &#8230; it just seemed good to do this because &#8230;<\/li>\n<li>the &#8220;middleperson&#8221; is HTML code taken word for word from that <a target=_blank title='Autocomplete Google Places API' href='https:\/\/developers.google.com\/maps\/documentation\/javascript\/examples\/places-autocomplete'>autocomplete<\/a> webpage &#8230; and we just call on that HTML in &#8230;<\/li>\n<li>PHP asks for a Google Places API Key (with no restrictions) off the user (in an HTML input type=password field &#8230; that has &#8220;remember me&#8221; capabilities) &#8230; and adds into the mix that &#8230;<\/li>\n<li>resultant webpage consists of the aforementioned HTML with a hardcoding substituted by the entered Google Places API Key<\/li>\n<\/ul>\n<p> &#8230; so, there you go.  Not for everyone, but maybe all this has encouraged you to sign up?!  Who knows?<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d44629' onclick='var dv=document.getElementById(\"d44629\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/api\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d44629' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Huge &#8220;where of life&#8221; concept ahead! Yes, we are trialling the great Google Places API, specifically a proof of concept use of autocomplete logic checking keyboard entered places letter by letter. Cute, huh? As you can imagine, &#8220;incumbency&#8221; is big &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-places-api-autocomplete-proof-of-concept-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[88,2926,2125,1695,481,483,513,2924,2925,576,932,2134,997,1986,1319],"class_list":["post-44629","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-api","tag-api-key","tag-autocomplete","tag-autocompletion","tag-geographicals","tag-geolocation","tag-google","tag-google-places","tag-google-places-api","tag-html","tag-php","tag-place","tag-programming","tag-proof-of-concept","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/44629"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=44629"}],"version-history":[{"count":4,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/44629\/revisions"}],"predecessor-version":[{"id":44660,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/44629\/revisions\/44660"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=44629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=44629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=44629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}