how to embed google map url to website using html












1















i have this google map url
I tried to embed using iframe to my website but it's not working






 <iframe id="iframeid"
width="450"
height="250"
style="border:0"
src="https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
></iframe>





please help how to embed










share|improve this question





























    1















    i have this google map url
    I tried to embed using iframe to my website but it's not working






     <iframe id="iframeid"
    width="450"
    height="250"
    style="border:0"
    src="https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
    ></iframe>





    please help how to embed










    share|improve this question



























      1












      1








      1








      i have this google map url
      I tried to embed using iframe to my website but it's not working






       <iframe id="iframeid"
      width="450"
      height="250"
      style="border:0"
      src="https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
      ></iframe>





      please help how to embed










      share|improve this question
















      i have this google map url
      I tried to embed using iframe to my website but it's not working






       <iframe id="iframeid"
      width="450"
      height="250"
      style="border:0"
      src="https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
      ></iframe>





      please help how to embed






       <iframe id="iframeid"
      width="450"
      height="250"
      style="border:0"
      src="https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
      ></iframe>





       <iframe id="iframeid"
      width="450"
      height="250"
      style="border:0"
      src="https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
      ></iframe>






      javascript php html css






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 19 at 7:03









      Anil Rana

      44




      44










      asked Jan 19 at 6:36









      David EyeDavid Eye

      61




      61
























          3 Answers
          3






          active

          oldest

          votes


















          0














          Here is another way of implementing:






          <iframe width="100%" height="600" src="https://maps.google.com/maps?width=100%&amp;height=600&amp;hl=en&amp;coord=52.70967533219885, -8.020019531250002&amp;q=1%20Grafton%20Street%2C%20Dublin%2C%20Ireland&amp;ie=UTF8&amp;t=&amp;z=14&amp;iwloc=B&amp;output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe><br />





          You have to change the following:




          1. width= (width of iframe)

          2. height= (height of iframe)

          3. coord= (cordinates of the address)

          4. q= (address)

          5. z= (zoom level)


          Hope this helps






          share|improve this answer































            0














            If you check the console you will find the following error,



            Refused to display 'https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling' in a frame because it set 'X-Frame-Options' to 'sameorigin'.



            Here you can read more about the above error



            Now to fix this error change the iframe src a little as followed.






            <iframe id="iframeid"
            width="450"
            height="250"
            style="border:0"
            src="https://www.google.com/maps/embed?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
            ></iframe>





            What we did is we changed dir/ to embed






            share|improve this answer































              -1














              First, check out how to ask



              From the looks of it, I would start on googles developer guide, you need to request an API key. Then try to put that code with the API key put into your html code



              <iframe
              width="600"
              height="450"
              frameborder="0" style="border:0"
              src="https://www.google.com/maps/embed/v1/place?key=YOUR_API_KEY
              &q=Space+Needle,Seattle+WA" allowfullscreen>
              </iframe>


              after that maybe you can dive a little further into detail on what "it's not working" means. Are you getting any output in the console, did it shut your computer off? any further detail would help us help you!






              share|improve this answer























                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54264689%2fhow-to-embed-google-map-url-to-website-using-html%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                0














                Here is another way of implementing:






                <iframe width="100%" height="600" src="https://maps.google.com/maps?width=100%&amp;height=600&amp;hl=en&amp;coord=52.70967533219885, -8.020019531250002&amp;q=1%20Grafton%20Street%2C%20Dublin%2C%20Ireland&amp;ie=UTF8&amp;t=&amp;z=14&amp;iwloc=B&amp;output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe><br />





                You have to change the following:




                1. width= (width of iframe)

                2. height= (height of iframe)

                3. coord= (cordinates of the address)

                4. q= (address)

                5. z= (zoom level)


                Hope this helps






                share|improve this answer




























                  0














                  Here is another way of implementing:






                  <iframe width="100%" height="600" src="https://maps.google.com/maps?width=100%&amp;height=600&amp;hl=en&amp;coord=52.70967533219885, -8.020019531250002&amp;q=1%20Grafton%20Street%2C%20Dublin%2C%20Ireland&amp;ie=UTF8&amp;t=&amp;z=14&amp;iwloc=B&amp;output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe><br />





                  You have to change the following:




                  1. width= (width of iframe)

                  2. height= (height of iframe)

                  3. coord= (cordinates of the address)

                  4. q= (address)

                  5. z= (zoom level)


                  Hope this helps






                  share|improve this answer


























                    0












                    0








                    0







                    Here is another way of implementing:






                    <iframe width="100%" height="600" src="https://maps.google.com/maps?width=100%&amp;height=600&amp;hl=en&amp;coord=52.70967533219885, -8.020019531250002&amp;q=1%20Grafton%20Street%2C%20Dublin%2C%20Ireland&amp;ie=UTF8&amp;t=&amp;z=14&amp;iwloc=B&amp;output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe><br />





                    You have to change the following:




                    1. width= (width of iframe)

                    2. height= (height of iframe)

                    3. coord= (cordinates of the address)

                    4. q= (address)

                    5. z= (zoom level)


                    Hope this helps






                    share|improve this answer













                    Here is another way of implementing:






                    <iframe width="100%" height="600" src="https://maps.google.com/maps?width=100%&amp;height=600&amp;hl=en&amp;coord=52.70967533219885, -8.020019531250002&amp;q=1%20Grafton%20Street%2C%20Dublin%2C%20Ireland&amp;ie=UTF8&amp;t=&amp;z=14&amp;iwloc=B&amp;output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe><br />





                    You have to change the following:




                    1. width= (width of iframe)

                    2. height= (height of iframe)

                    3. coord= (cordinates of the address)

                    4. q= (address)

                    5. z= (zoom level)


                    Hope this helps






                    <iframe width="100%" height="600" src="https://maps.google.com/maps?width=100%&amp;height=600&amp;hl=en&amp;coord=52.70967533219885, -8.020019531250002&amp;q=1%20Grafton%20Street%2C%20Dublin%2C%20Ireland&amp;ie=UTF8&amp;t=&amp;z=14&amp;iwloc=B&amp;output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe><br />





                    <iframe width="100%" height="600" src="https://maps.google.com/maps?width=100%&amp;height=600&amp;hl=en&amp;coord=52.70967533219885, -8.020019531250002&amp;q=1%20Grafton%20Street%2C%20Dublin%2C%20Ireland&amp;ie=UTF8&amp;t=&amp;z=14&amp;iwloc=B&amp;output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe><br />






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 19 at 8:02









                    SyferSyfer

                    2,56221123




                    2,56221123

























                        0














                        If you check the console you will find the following error,



                        Refused to display 'https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling' in a frame because it set 'X-Frame-Options' to 'sameorigin'.



                        Here you can read more about the above error



                        Now to fix this error change the iframe src a little as followed.






                        <iframe id="iframeid"
                        width="450"
                        height="250"
                        style="border:0"
                        src="https://www.google.com/maps/embed?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
                        ></iframe>





                        What we did is we changed dir/ to embed






                        share|improve this answer




























                          0














                          If you check the console you will find the following error,



                          Refused to display 'https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling' in a frame because it set 'X-Frame-Options' to 'sameorigin'.



                          Here you can read more about the above error



                          Now to fix this error change the iframe src a little as followed.






                          <iframe id="iframeid"
                          width="450"
                          height="250"
                          style="border:0"
                          src="https://www.google.com/maps/embed?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
                          ></iframe>





                          What we did is we changed dir/ to embed






                          share|improve this answer


























                            0












                            0








                            0







                            If you check the console you will find the following error,



                            Refused to display 'https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling' in a frame because it set 'X-Frame-Options' to 'sameorigin'.



                            Here you can read more about the above error



                            Now to fix this error change the iframe src a little as followed.






                            <iframe id="iframeid"
                            width="450"
                            height="250"
                            style="border:0"
                            src="https://www.google.com/maps/embed?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
                            ></iframe>





                            What we did is we changed dir/ to embed






                            share|improve this answer













                            If you check the console you will find the following error,



                            Refused to display 'https://www.google.com/maps/dir/?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling' in a frame because it set 'X-Frame-Options' to 'sameorigin'.



                            Here you can read more about the above error



                            Now to fix this error change the iframe src a little as followed.






                            <iframe id="iframeid"
                            width="450"
                            height="250"
                            style="border:0"
                            src="https://www.google.com/maps/embed?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
                            ></iframe>





                            What we did is we changed dir/ to embed






                            <iframe id="iframeid"
                            width="450"
                            height="250"
                            style="border:0"
                            src="https://www.google.com/maps/embed?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
                            ></iframe>





                            <iframe id="iframeid"
                            width="450"
                            height="250"
                            style="border:0"
                            src="https://www.google.com/maps/embed?api=1&origin=Space+Needle+Seattle+WA&destination=Pike+Place+Market+Seattle+WA&travelmode=bicycling"
                            ></iframe>






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 19 at 9:08









                            Ussaid IqbalUssaid Iqbal

                            543514




                            543514























                                -1














                                First, check out how to ask



                                From the looks of it, I would start on googles developer guide, you need to request an API key. Then try to put that code with the API key put into your html code



                                <iframe
                                width="600"
                                height="450"
                                frameborder="0" style="border:0"
                                src="https://www.google.com/maps/embed/v1/place?key=YOUR_API_KEY
                                &q=Space+Needle,Seattle+WA" allowfullscreen>
                                </iframe>


                                after that maybe you can dive a little further into detail on what "it's not working" means. Are you getting any output in the console, did it shut your computer off? any further detail would help us help you!






                                share|improve this answer




























                                  -1














                                  First, check out how to ask



                                  From the looks of it, I would start on googles developer guide, you need to request an API key. Then try to put that code with the API key put into your html code



                                  <iframe
                                  width="600"
                                  height="450"
                                  frameborder="0" style="border:0"
                                  src="https://www.google.com/maps/embed/v1/place?key=YOUR_API_KEY
                                  &q=Space+Needle,Seattle+WA" allowfullscreen>
                                  </iframe>


                                  after that maybe you can dive a little further into detail on what "it's not working" means. Are you getting any output in the console, did it shut your computer off? any further detail would help us help you!






                                  share|improve this answer


























                                    -1












                                    -1








                                    -1







                                    First, check out how to ask



                                    From the looks of it, I would start on googles developer guide, you need to request an API key. Then try to put that code with the API key put into your html code



                                    <iframe
                                    width="600"
                                    height="450"
                                    frameborder="0" style="border:0"
                                    src="https://www.google.com/maps/embed/v1/place?key=YOUR_API_KEY
                                    &q=Space+Needle,Seattle+WA" allowfullscreen>
                                    </iframe>


                                    after that maybe you can dive a little further into detail on what "it's not working" means. Are you getting any output in the console, did it shut your computer off? any further detail would help us help you!






                                    share|improve this answer













                                    First, check out how to ask



                                    From the looks of it, I would start on googles developer guide, you need to request an API key. Then try to put that code with the API key put into your html code



                                    <iframe
                                    width="600"
                                    height="450"
                                    frameborder="0" style="border:0"
                                    src="https://www.google.com/maps/embed/v1/place?key=YOUR_API_KEY
                                    &q=Space+Needle,Seattle+WA" allowfullscreen>
                                    </iframe>


                                    after that maybe you can dive a little further into detail on what "it's not working" means. Are you getting any output in the console, did it shut your computer off? any further detail would help us help you!







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jan 19 at 6:56









                                    Corey GibsonCorey Gibson

                                    7011




                                    7011






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Stack Overflow!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54264689%2fhow-to-embed-google-map-url-to-website-using-html%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Liquibase includeAll doesn't find base path

                                        How to use setInterval in EJS file?

                                        Petrus Granier-Deferre