Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7026915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:10:48+00:00 2026-05-28T00:10:48+00:00

this is my code function show(placelanlat,names) { var placenames=names; var planlat=placelanlat; var newStr= planlat.replace(/[(\)]/g,”);

  • 0

this is my code

function show(placelanlat,names) 
{   
var placenames=names;
var planlat=placelanlat;
var newStr= planlat.replace(/[(\)]/g,'');
var aCars = newStr.split(',');
var infowindow = new google.maps.InfoWindow();
var marker;
var geocoder = new google.maps.Geocoder();
var latlng = new google.maps.LatLng(12.588,-83.667);
var myOptions = {
  zoom: 8,
  center: latlng,
  mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map_canvass"), myOptions);
var input = newStr;
var latlngStr = input.split(",",2);
var lat = parseFloat(latlngStr[0]);
var lng = parseFloat(latlngStr[1]);
var latlng = new google.maps.LatLng(lat, lng);
geocoder.geocode({'latLng': latlng}, function(results, status) {  
if (status == google.maps.GeocoderStatus.OK) {
  if (results[1]) {
    map.setZoom(11);
    marker = new google.maps.Marker({
      position: latlng,
      map: map,
      icon: 'images/images.png'
    });
    infowindow.setContent(placenames+"</br>"+results[0].formatted_address+"</br>");
    infowindow.open(map, marker);
    }
    }
  else {
  alert("Geocoder failed due to: " + status);
  }
   });
 return false; // MANDATORY!
  } 

if i set

infowindow.setContent(placenames+"</br>"
                      +results[0].formatted_address
                      +"</br>"+results[0].formatted_phone);
results[0].formatted_phone ->

this is showing empty.why?
where i want to change to get place phone number.
example:http://www.google.com/maps?source=uds&daddr=India,++%28India%29+@20.593684,78.96288&saddr=37.781287,-122.395575

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:10:49+00:00Added an answer on May 28, 2026 at 12:10 am

    if you use The Google Places API (Experimental)
    then follow these steps

    • first get an API key
    • now use Place Search Requests

      A Place Search request is an HTTP URL of the following form:

      https://maps.googleapis.com/maps/api/place/search/output?parameters

    Certain parameters are required to initiate a Place Search request

    key (required) — Your application's API key. 
    location (required) —  This must be specified as latitude,longitude.
    radius (required) — The distance (in meters) within which to return Place results.
    sensor (required) — This value must be either true or false.
    

    Each result within the results array may contain

    reference contains a unique token that you can use to retrieve additional information about this place in a Place Details request.
    You can store this token and use it at any time in future to refresh
    cached data about this Place, but the same token is not guaranteed to
    be returned for any given Place across different searches.

    • Once you have a reference from a Place Search request, you can request more details about a particular establishment or point of interest by initiating a Place Details request.

      A Place Details request returns more comprehensive information about the indicated place such as its complete address, phone number, user rating, etc.
      A Place Details request is an HTTP URL of the following form:

      https://maps.googleapis.com/maps/api/place/details/output?parameters

    Certain parameters are required to initiate a search request.

    key (required) — Your application's API key.
    reference (required) — A textual identifier that uniquely identifies a place, returned from a Place search request.
    sensor (required) —  This value must be either true or false.
    
    • output of Place Details contains

      formatted_phone_number and international_phone_number.

    Hope it would helps u.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

See this code: var MyObject = new function() { this.tos = new Array(); this.show
The code like this: $(.hide).click(function(){ $(.online-contact).animate({width: 'toggle',height: '100%'}, fast); $(this).hide(); $(.show-class).show(); }) I want
View this code: function testprecision(){ var isNotNumber = parseFloat('1.3').toPrecision(6); alert(typeof isNotNumber); //=> string }
Hello I get a weird error in this code: function validateForm(aform) { var s=;
$(document).ready(function(){ $('#content1').hide(); $('a#open').click(function(){ $('#content1').show('slow'); }); $('a#close').click(function(){ $('#content1').hide('slow'); }) }); in this code of toogle
I have this code $(.insert).click(function(){ $(.insert).ajaxStop(function(){ $(.load).hide(); }); $(.insert).ajaxStart(function(){ $(.load).show(); }); $.ajax({ type: GET,
I have some code like this: function switch_tabs(obj) { $('.tab-content').hide(); $('.tabs a').removeClass(selected); var id
This code function LoadContent(Id) { alert('Controls/Network/NetworkDetail.aspx?' + rnd() + '&CtlId=' + Id); $.get('Controls/Network/NetworkDetail.aspx?' +
With this code function someFunction(classParam:Class):Boolean { // how to know if classParam implements some
I have this code: function submitTwice(f){ f.action = 'http://mydomain.com/threevideopage.php'; f.target='name'; f.submit(); } I left

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.