Get Latitude Longitude from address in php












-1















I am developing an mobile application for ANDROID and IOS. I want to get latitude , longitude from address pass by application to API. Which Google API is use for getting latitude and longitude from address and Also let me know is there any daily limit for calling API per day in php and android and ios.










share|improve this question



























    -1















    I am developing an mobile application for ANDROID and IOS. I want to get latitude , longitude from address pass by application to API. Which Google API is use for getting latitude and longitude from address and Also let me know is there any daily limit for calling API per day in php and android and ios.










    share|improve this question

























      -1












      -1








      -1








      I am developing an mobile application for ANDROID and IOS. I want to get latitude , longitude from address pass by application to API. Which Google API is use for getting latitude and longitude from address and Also let me know is there any daily limit for calling API per day in php and android and ios.










      share|improve this question














      I am developing an mobile application for ANDROID and IOS. I want to get latitude , longitude from address pass by application to API. Which Google API is use for getting latitude and longitude from address and Also let me know is there any daily limit for calling API per day in php and android and ios.







      php geocoding google-latitude






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 24 '18 at 16:26









      Adarsh BhattAdarsh Bhatt

      199112




      199112
























          2 Answers
          2






          active

          oldest

          votes


















          0














          You can use the following API provided by Google:
          https://developers.google.com/maps/documentation/javascript/geocoding#ReverseGeocoding



          Prices and limits can be found here:
          https://developers.google.com/maps/documentation/geocoding/usage-and-billing



          As of now the server-side API is limited to 50 requests per second and 100,000 daily free requests are supported.






          share|improve this answer































            0














                <script
            src="https://code.jquery.com/jquery-3.3.1.min.js"
            integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
            crossorigin="anonymous">

            // get you address field
            var city = document.getElementById("home_city_select").value;

            var jsonLtdLng="https://maps.googleapis.com/maps/api/geocode/json?address="+city+"&key=API_KEY";

            $.getJSON(jsonLtdLng, function (data) {
            console.log(data.results[0].geometry.location.lat);
            console.log(data.results[0].geometry.location.lng);
            });
            </script>





            share|improve this answer


























            • This does not answer OP's original question

              – smcjones
              Nov 25 '18 at 1:32











            • Adarsh asked two questions second part of question was already answered I answered the first part.

              – Mohsin Mujawar
              Nov 25 '18 at 1:58











            • I want php code not javascript code, because I have to use it in controller on in javascript file

              – Adarsh Bhatt
              Nov 26 '18 at 5:00











            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%2f53460125%2fget-latitude-longitude-from-address-in-php%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You can use the following API provided by Google:
            https://developers.google.com/maps/documentation/javascript/geocoding#ReverseGeocoding



            Prices and limits can be found here:
            https://developers.google.com/maps/documentation/geocoding/usage-and-billing



            As of now the server-side API is limited to 50 requests per second and 100,000 daily free requests are supported.






            share|improve this answer




























              0














              You can use the following API provided by Google:
              https://developers.google.com/maps/documentation/javascript/geocoding#ReverseGeocoding



              Prices and limits can be found here:
              https://developers.google.com/maps/documentation/geocoding/usage-and-billing



              As of now the server-side API is limited to 50 requests per second and 100,000 daily free requests are supported.






              share|improve this answer


























                0












                0








                0







                You can use the following API provided by Google:
                https://developers.google.com/maps/documentation/javascript/geocoding#ReverseGeocoding



                Prices and limits can be found here:
                https://developers.google.com/maps/documentation/geocoding/usage-and-billing



                As of now the server-side API is limited to 50 requests per second and 100,000 daily free requests are supported.






                share|improve this answer













                You can use the following API provided by Google:
                https://developers.google.com/maps/documentation/javascript/geocoding#ReverseGeocoding



                Prices and limits can be found here:
                https://developers.google.com/maps/documentation/geocoding/usage-and-billing



                As of now the server-side API is limited to 50 requests per second and 100,000 daily free requests are supported.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 24 '18 at 21:38









                nucandreinucandrei

                6193725




                6193725

























                    0














                        <script
                    src="https://code.jquery.com/jquery-3.3.1.min.js"
                    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
                    crossorigin="anonymous">

                    // get you address field
                    var city = document.getElementById("home_city_select").value;

                    var jsonLtdLng="https://maps.googleapis.com/maps/api/geocode/json?address="+city+"&key=API_KEY";

                    $.getJSON(jsonLtdLng, function (data) {
                    console.log(data.results[0].geometry.location.lat);
                    console.log(data.results[0].geometry.location.lng);
                    });
                    </script>





                    share|improve this answer


























                    • This does not answer OP's original question

                      – smcjones
                      Nov 25 '18 at 1:32











                    • Adarsh asked two questions second part of question was already answered I answered the first part.

                      – Mohsin Mujawar
                      Nov 25 '18 at 1:58











                    • I want php code not javascript code, because I have to use it in controller on in javascript file

                      – Adarsh Bhatt
                      Nov 26 '18 at 5:00
















                    0














                        <script
                    src="https://code.jquery.com/jquery-3.3.1.min.js"
                    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
                    crossorigin="anonymous">

                    // get you address field
                    var city = document.getElementById("home_city_select").value;

                    var jsonLtdLng="https://maps.googleapis.com/maps/api/geocode/json?address="+city+"&key=API_KEY";

                    $.getJSON(jsonLtdLng, function (data) {
                    console.log(data.results[0].geometry.location.lat);
                    console.log(data.results[0].geometry.location.lng);
                    });
                    </script>





                    share|improve this answer


























                    • This does not answer OP's original question

                      – smcjones
                      Nov 25 '18 at 1:32











                    • Adarsh asked two questions second part of question was already answered I answered the first part.

                      – Mohsin Mujawar
                      Nov 25 '18 at 1:58











                    • I want php code not javascript code, because I have to use it in controller on in javascript file

                      – Adarsh Bhatt
                      Nov 26 '18 at 5:00














                    0












                    0








                    0







                        <script
                    src="https://code.jquery.com/jquery-3.3.1.min.js"
                    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
                    crossorigin="anonymous">

                    // get you address field
                    var city = document.getElementById("home_city_select").value;

                    var jsonLtdLng="https://maps.googleapis.com/maps/api/geocode/json?address="+city+"&key=API_KEY";

                    $.getJSON(jsonLtdLng, function (data) {
                    console.log(data.results[0].geometry.location.lat);
                    console.log(data.results[0].geometry.location.lng);
                    });
                    </script>





                    share|improve this answer















                        <script
                    src="https://code.jquery.com/jquery-3.3.1.min.js"
                    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
                    crossorigin="anonymous">

                    // get you address field
                    var city = document.getElementById("home_city_select").value;

                    var jsonLtdLng="https://maps.googleapis.com/maps/api/geocode/json?address="+city+"&key=API_KEY";

                    $.getJSON(jsonLtdLng, function (data) {
                    console.log(data.results[0].geometry.location.lat);
                    console.log(data.results[0].geometry.location.lng);
                    });
                    </script>






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 25 '18 at 1:29

























                    answered Nov 25 '18 at 1:03









                    Mohsin MujawarMohsin Mujawar

                    666




                    666













                    • This does not answer OP's original question

                      – smcjones
                      Nov 25 '18 at 1:32











                    • Adarsh asked two questions second part of question was already answered I answered the first part.

                      – Mohsin Mujawar
                      Nov 25 '18 at 1:58











                    • I want php code not javascript code, because I have to use it in controller on in javascript file

                      – Adarsh Bhatt
                      Nov 26 '18 at 5:00



















                    • This does not answer OP's original question

                      – smcjones
                      Nov 25 '18 at 1:32











                    • Adarsh asked two questions second part of question was already answered I answered the first part.

                      – Mohsin Mujawar
                      Nov 25 '18 at 1:58











                    • I want php code not javascript code, because I have to use it in controller on in javascript file

                      – Adarsh Bhatt
                      Nov 26 '18 at 5:00

















                    This does not answer OP's original question

                    – smcjones
                    Nov 25 '18 at 1:32





                    This does not answer OP's original question

                    – smcjones
                    Nov 25 '18 at 1:32













                    Adarsh asked two questions second part of question was already answered I answered the first part.

                    – Mohsin Mujawar
                    Nov 25 '18 at 1:58





                    Adarsh asked two questions second part of question was already answered I answered the first part.

                    – Mohsin Mujawar
                    Nov 25 '18 at 1:58













                    I want php code not javascript code, because I have to use it in controller on in javascript file

                    – Adarsh Bhatt
                    Nov 26 '18 at 5:00





                    I want php code not javascript code, because I have to use it in controller on in javascript file

                    – Adarsh Bhatt
                    Nov 26 '18 at 5:00


















                    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%2f53460125%2fget-latitude-longitude-from-address-in-php%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

                    Costa Masnaga

                    Fotorealismo

                    Sidney Franklin