Answers.Body: <p>It's probably too late to help the OP (sorry @shorn), but here's how you would pull this off with Smart Map...</p>
  
  <p><a href="https://craftpl.us/plugins/smart-map/docs/front-end-entry-form" rel="nofollow">Add the Address field on the front-end.</a></p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;label&gt;Street Address&lt;/label&gt;
  &lt;input type="text" name="fields[myAddressField][street1]" value=""&gt;
  
  &lt;label&gt;Apartment or Suite&lt;/label&gt;
  &lt;input type="text" name="fields[myAddressField][street2]" value=""&gt;
  
  &lt;label&gt;City&lt;/label&gt;
  &lt;input type="text" name="fields[myAddressField][city]" value=""&gt;
  
  &lt;label&gt;State&lt;/label&gt;
  &lt;input type="text" name="fields[myAddressField][state]" value=""&gt;
  
  &lt;label&gt;Zip Code&lt;/label&gt;
  &lt;input type="text" name="fields[myAddressField][zip]" value=""&gt;
  
  &lt;label&gt;Country&lt;/label&gt;
  &lt;input type="text" name="fields[myAddressField][country]" value=""&gt;
  
  &lt;label&gt;Latitude&lt;/label&gt;
  &lt;input type="text" name="fields[myAddressField][lat]" value=""&gt;
  
  &lt;label&gt;Longitude&lt;/label&gt;
  &lt;input type="text" name="fields[myAddressField][lng]" value=""&gt;
  </code></pre>
  
  <p>Then, you can inject the <code>lat</code> and <code>lng</code> values using JavaScript. Since you're doing that dynamically, you could even make those inputs <code>hidden</code>.</p>
  
  <p>That's it!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-22T04:29:38.620Z
Answers.LastActivityDate: 2016-03-22T04:29:38.620Z
Answers.UserDisplayName: Lindsey D
Body: <p>I'm not entirely sure if this is possible, or the right way to go about this, however here goes. </p>
  
  <p>I have a front end entry form that members use to create entries. These entries contain location data. I'm looking at using a maps plugin but nothing out there supports front end directly. I'm currently testing Squarebit Maps. (Smartmap is next!)</p>
  
  <p>Now, from checking out the db, Squarebit Maps stores it's field data in the <code>craft_content</code> table in a format like so:</p>
  
  <pre><code>{"mapLat":"50.89150121867578","mapLng":"-1.4487441291137202","mapZoom":"15","pinLat":"50.89150121867578","pinLng":"-1.4487441291137202","__model__":"Craft\\SquareBitMaps_MapModel"}
  </code></pre>
  
  <p>I was wondering, if I included a map for users to choose a location within the front end form using something like <a href="http://ubilabs.github.io/geocomplete/" rel="nofollow">Geocomplete</a> could I pass through the lat &amp; long in a hidden field to the squarebit field?</p>
  
  <p>Hope that makes sense?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-30T06:16:30.707Z
Comments.Text: Let me know when you get to Smart Map... this would actually be pretty easy to do. ;)
Comments.UserDisplayName: Lindsey D
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-30T08:58:25.853Z
Comments.Text: Well, tested this with morning, and I can pass the data with a value like `50.89150121867578|-1.4530571212096688|14|50.89150121867578|-1.4487441291137202` straight to the field and it sets the map correctly. This is good, obviously just need to join these values together when the form is submitted. Good to know. 
  
  Lindsey, I'd be happy to hear any suggestions as to how I would achieve this using Smartmap. I have my copy you sent ready for testing! :)
Comments.UserDisplayName: shorn
Tags: <plugins><form><google-maps>
Title: Front End entry form, mapping a hidden field to a plugin?
ThreadText: # Front End entry form, mapping a hidden field to a plugin?
  
  (Asked by: username_0 on 2015-12-29)
  
  I'm not entirely sure if this is possible, or the right way to go about this, however here goes.
  
  I have a front end entry form that members use to create entries. These entries contain location data. I'm looking at using a maps plugin but nothing out there supports front end directly. I'm currently testing Squarebit Maps. (Smartmap is next!)
  
  Now, from checking out the db, Squarebit Maps stores it's field data in the `craft_content` table in a format like so:
  
  ```
  {"mapLat":"50.89150121867578","mapLng":"-1.4487441291137202","mapZoom":"15","pinLat":"50.89150121867578","pinLng":"-1.4487441291137202","__model__":"Craft\\SquareBitMaps_MapModel"}
  
  ```
  
  I was wondering, if I included a map for users to choose a location within the front end form using something like [Geocomplete](http://ubilabs.github.io/geocomplete/) could I pass through the lat & long in a hidden field to the squarebit field?
  
  Hope that makes sense?
  
  **Tags:** plugins, form, google-maps
  
  > **Comments:**
  > **username_1**: Let me know when you get to Smart Map... this would actually be pretty easy to do. ;)  
  > **username_0**: Well, tested this with morning, and I can pass the data with a value like `50.89150121867578|-1.4530571212096688|14|50.89150121867578|-1.4487441291137202` straight to the field and it sets the map correctly. This is good, obviously just need to join these values together when the form is submitted. Good to know.   username_1, I'd be happy to hear any suggestions as to how I would achieve this using Smartmap. I have my copy you sent ready for testing! :)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-03-22. Score: 1
  
  It's probably too late to help the OP (sorry @username_0), but here's how you would pull this off with Smart Map...
  
  [Add the Address field on the front-end.](https://craftpl.us/plugins/smart-map/docs/front-end-entry-form)
  
  ```html
  <label>Street Address</label>
  <input type="text" name="fields[myAddressField][street1]" value="">
  
  <label>Apartment or Suite</label>
  <input type="text" name="fields[myAddressField][street2]" value="">
  
  <label>City</label>
  <input type="text" name="fields[myAddressField][city]" value="">
  
  <label>State</label>
  <input type="text" name="fields[myAddressField][state]" value="">
  
  <label>Zip Code</label>
  <input type="text" name="fields[myAddressField][zip]" value="">
  
  <label>Country</label>
  <input type="text" name="fields[myAddressField][country]" value="">
  
  <label>Latitude</label>
  <input type="text" name="fields[myAddressField][lat]" value="">
  
  <label>Longitude</label>
  <input type="text" name="fields[myAddressField][lng]" value="">
  
  ```
  
  Then, you can inject the `lat` and `lng` values using JavaScript. Since you're doing that dynamically, you could even make those inputs `hidden`.
  
  That's it!
  
  
  ---
  
  