Get Latitude Longitude from address in php
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
add a comment |
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
add a comment |
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
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
php geocoding google-latitude
asked Nov 24 '18 at 16:26
Adarsh BhattAdarsh Bhatt
199112
199112
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
<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>
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 24 '18 at 21:38
nucandreinucandrei
6193725
6193725
add a comment |
add a comment |
<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>
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
add a comment |
<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>
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
add a comment |
<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>
<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>
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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