Internal Server Error Error 500 Google Latitude
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the http://stackoverflow.com/questions/18096722/google-maps-directions-api-to-calculate-distances-causing-internal-server-error workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions https://www.englishforum.ch/tv-internet-telephone/138070-google-latitude-post1478834.html Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join internal server them; it only takes a minute: Sign up Google maps directions API to calculate distances causing internal server error up vote 0 down vote favorite I have the following code where I need to call google API multiple times to get distance. The input to API are the origin and destination zipcodes. When I hit this link, http://maps.googleapis.com/maps/api/directions/json?origin=(1230)&waypoints=(2345)&sensor=false it internal server error works fine but if I call the API in my php code, this gives internal server error (500) and page is not loaded. // Calling API to get routes $content=file_get_contents("http://maps.googleapis.com/maps/api/directions/json?origin=1230&waypoints=2345&sensor=false"); $json = json_decode($content); // here I get internal server error print_r($json); Please help me in resolving the issue. php google-maps share|improve this question edited Aug 7 '13 at 11:34 asked Aug 7 '13 at 7:03 cartina 1,201718 Is your web server generating the internal server error or is Google? –André Dion Aug 7 '13 at 11:21 @AndréDion my server is generating 500. Even if I keep this code outside loop giving static origin and destination zipcodes, it gives error 500 only. –cartina Aug 7 '13 at 11:23 It sounds like you have a problem outside of the context of the code you've pasted. Check your web server's logs and ensure your variables ($sqlquery, $row, etc) contain the values your code expects. –André Dion Aug 7 '13 at 11:31 @AndréDion I have removed the extra code, I a
Social events Commercial events Concerts Directory Jobs Property Dating Community Member list Who's online Contacts and friends Social groups Photo albums Live chat Quickies Today's posts Mark forums read Send new message My subscriptions Simple search Advanced search Imprint / Impressum Privacy policy Advertise English Forum Switzerland > Help & tips > TV/internet/telephone google latitude Community Links Social Groups Pictures & Albums Member List Search Forums Show Threads Show Posts Tag Search Advanced Search Find All Thanked Posts Find All Groaned At Posts Search Blogs Advanced Search Go to Page... Thread Tools Display Modes #1 05.02.2012, 22:44 e.kazemi Banned Join Date: Jun 2011 Location: zurich Posts: 207 Groaned at 40 Times in 22 Posts Thanked 35 Times in 27 Posts google latitude Anybody knows why google latitude does'nt work in switzerland? or maybe this is my problem, I get "internal server error" 500. I wanna know if anybod has the same issue! #2 05.02.2012, 22:48 jrspet Forum Legend Join Date: Jul 2007 Location: Quaint Wädenswil, Zürich, CH Posts: 8,153 Groaned at 29 Times in 22 Posts Thanked 7,036 Times in 3,912 Posts Re: google latitude Works for me: https://www.google.com.au/latitude/b/0/ Attached Thumbnails This user would like to thank jrspet for this useful post: e.kazemi #3 05.02.2012, 22:55 e.kazemi Banned Join Date: Jun 2011 Location: zurich Posts: 207 Groaned at 40 Times in 22 Posts Thanked 35 Times in 27 Posts Re: google latitude So it works! but it doesn't work for me :Internal Server Error 500. #4 05.02.2012, 22:55 cdcdoc Forum Veteran Join Date: Mar 2010 Location: Fehraltorf / ZH Posts: 794 Groaned at 30 Times in 24 Posts Thanked 778 Times in 390 Posts Re: google latitude Mobile device or PC? Quote: e.kazemi Anybody knows why google latitude does'nt work in switzerland? or maybe this is my problem, I get "internal server error" 500. I wanna know if anybod has the same issue! This user would like to thank cdcdoc for this useful post: e.kazemi #5 05.02.2012, 23:05 e.kazemi Banned Join Date: Jun 2011 Location: zurich Posts: 207 Groaned at 40 Times in 22 Posts Thanked 35 Times in 27 Posts Re: google latitude Quote: cdcdoc Mobile device or PC? PC , although i haven't tried mobile yet #6 05.02.2012, 23:19 cdcdoc Forum Veteran Join Date: Mar 2010 Location: Fehraltorf / ZH Posts: 794 Groaned at 30 Times