{"id":11224,"date":"2018-05-12T16:27:30","date_gmt":"2018-05-12T23:27:30","guid":{"rendered":"https:\/\/www.seedcode.com\/?p=11224"},"modified":"2018-05-12T16:27:30","modified_gmt":"2018-05-12T23:27:30","slug":"geolocation-in-filemaker-go","status":"publish","type":"post","link":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/","title":{"rendered":"Geolocation in FileMaker Go"},"content":{"rendered":"<p>FileMaker makes getting an accurate latitude and longitude from an iPhone or iPad super easy. Say you\u00a0want to update a properties&#8217; exact location in ProMaps when you&#8217;re on site: why not get it automatically from your device?<\/p>\n<p>Here&#8217;s a video of this in action:<\/p>\n<p><iframe title=\"Geolocation in FileMaker Go with ProMaps\" src=\"https:\/\/player.vimeo.com\/video\/269384857?h=21d29a4b2c&amp;dnt=1&amp;app_id=122963\" width=\"960\" height=\"540\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<h2>Implementing\u00a0Geolocation in FileMaker Go<\/h2>\n<p>This is easily implemented by adding a small script to your solution. Here&#8217;s a screenshot of the script we&#8217;d add to <a href=\"https:\/\/www.seedcode.com\/promaps\/\" target=\"_blank\" rel=\"noopener\">ProMaps<\/a>\u00a0(the only thing specific to ProMaps here is the location field which could be any text field in your solution):<\/p>\n<p><a href=\"https:\/\/www.seedcode.com\/wp-content\/uploads\/2018\/05\/UpdateGLfromDevice.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-large wp-image-11227\" src=\"https:\/\/www.seedcode.com\/wp-content\/uploads\/2018\/05\/UpdateGLfromDevice.png\" alt=\"FileMaker Script to Update Geolocation on iPad\" width=\"1024\" height=\"643\" srcset=\"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/UpdateGLfromDevice.png 1320w, https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/UpdateGLfromDevice-300x188.png 300w, https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/UpdateGLfromDevice-1024x643.png 1024w, https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/UpdateGLfromDevice-768x482.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>The most complex part of this script is formatting the returned value into the comma separated &#8220;latitude,longitude&#8221;\u00a0value required for the gm_GeoLocation field value, so I&#8217;ve pasted the value for the Set Variable step on line\u00a020 here:<\/p>\n<pre class=\"lang:js decode:true\">Let ([\n\n    latPrefix = Case ( Left ( $sc_Location; 1 ) = \"-\"; \"-\" ; \"\" );\n    longPrefix = Case ( Middle ( $sc_Location ; Position ( $sc_Location; \",\"; 1; 1 ) + 2 ; 1 ) = \"-\" ; \"-\"; \"\" )\n];\n \n latPrefix &amp; LeftWords ( $sc_Location; 1 ) &amp; \",\" &amp; longPrefix &amp; MiddleWords ( $sc_Location; 2; 1 )\n\n)<\/pre>\n<p>Now, you can call this script from a new button placed on your property detail layout. Alternately, you could call it automatically when uploading a new picture to your property. To do this, \u00a0add the highlighted lines in the screenshot below to the &#8220;Process Image&#8230;&#8221; script in ProMaps.<\/p>\n<p><a href=\"https:\/\/www.seedcode.com\/wp-content\/uploads\/2018\/05\/ProcessImage.png\"><img decoding=\"async\" class=\"aligncenter size-large wp-image-11229\" src=\"https:\/\/www.seedcode.com\/wp-content\/uploads\/2018\/05\/ProcessImage.png\" alt=\"Geolocation in FileMaker Go for iPad\" width=\"1024\" height=\"756\" srcset=\"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/ProcessImage.png 1123w, https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/ProcessImage-300x221.png 300w, https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/ProcessImage-1024x756.png 1024w, https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/ProcessImage-768x567.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Hopefully, this example helps make your workflow with ProMaps even smoother.<\/p>\n<h2><strong>Demo and Help<\/strong><\/h2>\n<p>If you&#8217;d like to try out ProMaps, which allows you to display your properties on a Google powered map, including filtering and routing features, please download a demo at our <a href=\"https:\/\/www.seedcode.com\/promaps\/\">ProMaps product page<\/a>.<\/p>\n<p>If you\u2019d like help customizing this mod, or creating other mods like this, feel free to <a href=\"https:\/\/www.seedcode.com\/contact\/\">contact us<\/a> and we\u2019ll get you on the schedule.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FileMaker makes getting an accurate latitude and longitude from an iPhone or iPad super easy. Say you\u00a0want to update a properties&#8217; exact location in ProMaps when you&#8217;re on site: why not get it automatically from your device? Here&#8217;s a video of this in action: Implementing\u00a0Geolocation in FileMaker Go This is easily implemented by adding a small script to your solution. Here&#8217;s a screenshot of the script we&#8217;d add to ProMaps\u00a0(the only thing specific to ProMaps here is the location field which could be any text field in your solution): The most complex part of this script is formatting the returned value into the comma separated &#8220;latitude,longitude&#8221;\u00a0value required for the gm_GeoLocation field value, so I&#8217;ve pasted the value for the Set Variable step on line\u00a020 here: Let ([ latPrefix = Case ( Left ( $sc_Location; 1 ) = &#8220;-&#8220;; &#8220;-&#8221; ; &#8220;&#8221; ); longPrefix = Case ( Middle ( $sc_Location ; Position ( $sc_Location; &#8220;,&#8221;; 1; 1 ) + 2 ; 1 ) = &#8220;-&#8221; ; &#8220;-&#8220;; &#8220;&#8221; ) ]; latPrefix &amp; LeftWords ( $sc_Location; 1 ) &amp; &#8220;,&#8221; &amp; longPrefix &amp; MiddleWords ( $sc_Location; 2; 1 ) ) Now, you can call this script from a new button placed on your property detail layout. Alternately, you could call it automatically when uploading a new picture to your property. To do this, \u00a0add the highlighted lines in the screenshot below to the &#8220;Process Image&#8230;&#8221; script in ProMaps. Hopefully, this example helps make your workflow with ProMaps even smoother. Demo and Help If you&#8217;d like to try out ProMaps, which allows you to display your properties on a Google powered map, including filtering and routing features, please download a demo at our ProMaps product page. If you\u2019d like help customizing this mod, or creating other mods like this, feel free to contact us and we\u2019ll get you on the schedule.<\/p>\n","protected":false},"author":5,"featured_media":11238,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[22],"class_list":["post-11224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-maps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Geolocation in FileMaker Go - SeedCode<\/title>\n<meta name=\"description\" content=\"Update FileMaker records with your device location using the geolocation in FileMaker Go. Video and example scripts for the ProMaps add-on included.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Geolocation in FileMaker Go - SeedCode\" \/>\n<meta property=\"og:description\" content=\"Update FileMaker records with your device location using the geolocation in FileMaker Go. Video and example scripts for the ProMaps add-on included.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/\" \/>\n<meta property=\"og:site_name\" content=\"SeedCode\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/seedcoder\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-12T23:27:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png\" \/>\n\t<meta property=\"og:image:width\" content=\"319\" \/>\n\t<meta property=\"og:image:height\" content=\"325\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"KC Embrey\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dayback\" \/>\n<meta name=\"twitter:site\" content=\"@dayback\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"KC Embrey\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/\"},\"author\":{\"name\":\"KC Embrey\",\"@id\":\"https:\/\/seedcode.com\/#\/schema\/person\/89fd50d9241fcafac2e8fc44967d35b5\"},\"headline\":\"Geolocation in FileMaker Go\",\"datePublished\":\"2018-05-12T23:27:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/\"},\"wordCount\":268,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/seedcode.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png\",\"keywords\":[\"Maps\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/\",\"url\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/\",\"name\":\"Geolocation in FileMaker Go - SeedCode\",\"isPartOf\":{\"@id\":\"https:\/\/seedcode.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png\",\"datePublished\":\"2018-05-12T23:27:30+00:00\",\"description\":\"Update FileMaker records with your device location using the geolocation in FileMaker Go. Video and example scripts for the ProMaps add-on included.\",\"breadcrumb\":{\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#primaryimage\",\"url\":\"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png\",\"contentUrl\":\"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png\",\"width\":319,\"height\":325},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/seedcode.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Geolocation in FileMaker Go\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/seedcode.com\/#website\",\"url\":\"https:\/\/seedcode.com\/\",\"name\":\"SeedCode\",\"description\":\"Build the Software You&#039;ve Always Wanted\",\"publisher\":{\"@id\":\"https:\/\/seedcode.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/seedcode.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/seedcode.com\/#organization\",\"name\":\"SeedCode\",\"url\":\"https:\/\/seedcode.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/seedcode.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/seedcode.com\/wp-content\/uploads\/2022\/12\/SeedCodeLogo.png\",\"contentUrl\":\"https:\/\/seedcode.com\/wp-content\/uploads\/2022\/12\/SeedCodeLogo.png\",\"width\":595,\"height\":189,\"caption\":\"SeedCode\"},\"image\":{\"@id\":\"https:\/\/seedcode.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/seedcoder\",\"https:\/\/x.com\/dayback\",\"https:\/\/www.linkedin.com\/company\/seedcode\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/seedcode.com\/#\/schema\/person\/89fd50d9241fcafac2e8fc44967d35b5\",\"name\":\"KC Embrey\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/seedcode.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3af11e9688bc5e408572c387a4f2ff4246bb7038e897bdfd5685bdf534fd5b70?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3af11e9688bc5e408572c387a4f2ff4246bb7038e897bdfd5685bdf534fd5b70?s=96&d=mm&r=g\",\"caption\":\"KC Embrey\"},\"url\":\"https:\/\/seedcode.com\/author\/kcembrey\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Geolocation in FileMaker Go - SeedCode","description":"Update FileMaker records with your device location using the geolocation in FileMaker Go. Video and example scripts for the ProMaps add-on included.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/","og_locale":"en_US","og_type":"article","og_title":"Geolocation in FileMaker Go - SeedCode","og_description":"Update FileMaker records with your device location using the geolocation in FileMaker Go. Video and example scripts for the ProMaps add-on included.","og_url":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/","og_site_name":"SeedCode","article_publisher":"https:\/\/www.facebook.com\/seedcoder","article_published_time":"2018-05-12T23:27:30+00:00","og_image":[{"width":319,"height":325,"url":"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png","type":"image\/png"}],"author":"KC Embrey","twitter_card":"summary_large_image","twitter_creator":"@dayback","twitter_site":"@dayback","twitter_misc":{"Written by":"KC Embrey","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#article","isPartOf":{"@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/"},"author":{"name":"KC Embrey","@id":"https:\/\/seedcode.com\/#\/schema\/person\/89fd50d9241fcafac2e8fc44967d35b5"},"headline":"Geolocation in FileMaker Go","datePublished":"2018-05-12T23:27:30+00:00","mainEntityOfPage":{"@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/"},"wordCount":268,"commentCount":0,"publisher":{"@id":"https:\/\/seedcode.com\/#organization"},"image":{"@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#primaryimage"},"thumbnailUrl":"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png","keywords":["Maps"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/","url":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/","name":"Geolocation in FileMaker Go - SeedCode","isPartOf":{"@id":"https:\/\/seedcode.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#primaryimage"},"image":{"@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#primaryimage"},"thumbnailUrl":"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png","datePublished":"2018-05-12T23:27:30+00:00","description":"Update FileMaker records with your device location using the geolocation in FileMaker Go. Video and example scripts for the ProMaps add-on included.","breadcrumb":{"@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/seedcode.com\/geolocation-in-filemaker-go\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#primaryimage","url":"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png","contentUrl":"https:\/\/seedcode.com\/wp-content\/uploads\/2018\/05\/geolocation.png","width":319,"height":325},{"@type":"BreadcrumbList","@id":"https:\/\/seedcode.com\/geolocation-in-filemaker-go\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/seedcode.com\/"},{"@type":"ListItem","position":2,"name":"Geolocation in FileMaker Go"}]},{"@type":"WebSite","@id":"https:\/\/seedcode.com\/#website","url":"https:\/\/seedcode.com\/","name":"SeedCode","description":"Build the Software You&#039;ve Always Wanted","publisher":{"@id":"https:\/\/seedcode.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/seedcode.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/seedcode.com\/#organization","name":"SeedCode","url":"https:\/\/seedcode.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/seedcode.com\/#\/schema\/logo\/image\/","url":"https:\/\/seedcode.com\/wp-content\/uploads\/2022\/12\/SeedCodeLogo.png","contentUrl":"https:\/\/seedcode.com\/wp-content\/uploads\/2022\/12\/SeedCodeLogo.png","width":595,"height":189,"caption":"SeedCode"},"image":{"@id":"https:\/\/seedcode.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/seedcoder","https:\/\/x.com\/dayback","https:\/\/www.linkedin.com\/company\/seedcode\/"]},{"@type":"Person","@id":"https:\/\/seedcode.com\/#\/schema\/person\/89fd50d9241fcafac2e8fc44967d35b5","name":"KC Embrey","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/seedcode.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3af11e9688bc5e408572c387a4f2ff4246bb7038e897bdfd5685bdf534fd5b70?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3af11e9688bc5e408572c387a4f2ff4246bb7038e897bdfd5685bdf534fd5b70?s=96&d=mm&r=g","caption":"KC Embrey"},"url":"https:\/\/seedcode.com\/author\/kcembrey\/"}]}},"_links":{"self":[{"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/posts\/11224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/comments?post=11224"}],"version-history":[{"count":0,"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/posts\/11224\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/media\/11238"}],"wp:attachment":[{"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/media?parent=11224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/categories?post=11224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seedcode.com\/wp-json\/wp\/v2\/tags?post=11224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}