Jump to content
  • 0

Generate Geolocation


Corey

Question

Hello, 

I have been trying to generate geolocation on a submission form or update form.  With no luck.  

I tried duplicating that exact exercise and copy and pasting the fields to create a table.  https://howto.caspio.com/tech-tips-and-articles/advanced-customizations/tech-tip-generating-geolocation-coordinates-from-web-form-submissions/ And still Nothing happens.  I even tried switching out the code in that example and replacing it with this https://forums.caspio.com/topic/6815-generate-geolocation-coordinates-from-updatedetails-forms/?tab=comments#comment-21088

Still nothing…. am I  missing something? I am a newbie at this.  Maybe my table field types?   editor is disabled and code is exactly as written in example.  This has been driving me crazy! lol Has anyone actually got that example to work?  The one thing not discussed is table structure perhaps I am doing something wrong there?  Any help in getting this to work would be appreciated. 

 

Screenshot 2018-02-15 16.00.10.png

Screenshot 2018-02-15 16.01.27.png

Screenshot 2018-02-15 16.01.05.png

Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
On 2/18/2018 at 10:29 PM, Corey said:

Hello, 

I have been trying to generate geolocation on a submission form or update form.  With no luck.  

I tried duplicating that exact exercise and copy and pasting the fields to create a table.  https://howto.caspio.com/tech-tips-and-articles/advanced-customizations/tech-tip-generating-geolocation-coordinates-from-web-form-submissions/ And still Nothing happens.  I even tried switching out the code in that example and replacing it with this https://forums.caspio.com/topic/6815-generate-geolocation-coordinates-from-updatedetails-forms/?tab=comments#comment-21088

Still nothing…. am I  missing something? I am a newbie at this.  Maybe my table field types?   editor is disabled and code is exactly as written in example.  This has been driving me crazy! lol Has anyone actually got that example to work?  The one thing not discussed is table structure perhaps I am doing something wrong there?  Any help in getting this to work would be appreciated. 

 

Screenshot 2018-02-15 16.00.10.png

Screenshot 2018-02-15 16.01.27.png

Screenshot 2018-02-15 16.01.05.png

 

Hi Corey,

Did you not missed placing the JQuery & Google Maps libraries above the Datapage embed code? It is in step 4 of this article: https://howto.caspio.com/tech-tips-and-articles/advanced-customizations/tech-tip-generating-geolocation-coordinates-from-web-form-submissions/

Geo.PNG.0d8b7fa28f605b3a49de6dc42c8a5fc3.PNG

 

-Franchiser-

Link to post
Share on other sites
  • 0

Hello Corey,

Could you possibly provide the URL of the page with the submission form so that I can take a look at it?  I'm wondering if any errors are appearing in the console.  Also, if you are using the Google Map API integration for the first time, you may need to adjust the code placed in page above the deploy code. You may need to try the code with the API key included.

For example:

<script type="text/javascript" src="http://lib.caspio.com/pub/jquery/jquery.js"></script>

<script src="//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=<API KEY HERE>" async="" defer="defer" type="text/javascript"></script>

 

You can get a Google API key by going to this page:  https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key

Link to post
Share on other sites
  • 0

Hi, also just to add an additional information, Google now restricts the rate which non-geocoded addresses can be plotted on a map (approximately 10 addresses per second). And, Google API key needs to have a billing enabled (though you will not be charged) to fully access the Geocoding API that you will place in the map. You also need to enable this two:

1. Geocoding API 

2. Maps Javascript API

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...