admin管理员组

文章数量:1023803

Hello my question is regarding google map api. I am creating a autoplete search bar with google map api. but the problem is that it is returning only five results. Can anybody tell me how to increase number of results. my code is below

<script src="js/jquery.geoplete.js"></script>

<script>

$('#geoplete').keydown(function(e) {

  $(function(){
    var center = new google.maps.LatLng(51.50,0.1167);

    $("#geoplete").geoplete({
      map: ".map_canvas",
      country: 'gb',
types: ["(regions)"]
    });

    var map =  $("#geoplete").geoplete("map")

    map.setCenter(center);

  });
</script>

Hello my question is regarding google map api. I am creating a autoplete search bar with google map api. but the problem is that it is returning only five results. Can anybody tell me how to increase number of results. my code is below

<script src="js/jquery.geoplete.js"></script>

<script>

$('#geoplete').keydown(function(e) {

  $(function(){
    var center = new google.maps.LatLng(51.50,0.1167);

    $("#geoplete").geoplete({
      map: ".map_canvas",
      country: 'gb',
types: ["(regions)"]
    });

    var map =  $("#geoplete").geoplete("map")

    map.setCenter(center);

  });
</script>
Share Improve this question asked Mar 31, 2015 at 10:50 user5134673user5134673 2
  • I don't think you can make it more than 5 result at the same time. – Verma Commented Mar 31, 2015 at 21:16
  • hey so can you tell me any other api so that i can get upto 10 results – user5134673 Commented Apr 1, 2015 at 5:10
Add a ment  | 

2 Answers 2

Reset to default 6

This question has been asked many times before. Visit Google's Place Autoplete page Here and you'll see the text:

The Places API returns up to 5 results.

So there's your answer.

Yes of course.google place autoplete result has the length 5.

Hello my question is regarding google map api. I am creating a autoplete search bar with google map api. but the problem is that it is returning only five results. Can anybody tell me how to increase number of results. my code is below

<script src="js/jquery.geoplete.js"></script>

<script>

$('#geoplete').keydown(function(e) {

  $(function(){
    var center = new google.maps.LatLng(51.50,0.1167);

    $("#geoplete").geoplete({
      map: ".map_canvas",
      country: 'gb',
types: ["(regions)"]
    });

    var map =  $("#geoplete").geoplete("map")

    map.setCenter(center);

  });
</script>

Hello my question is regarding google map api. I am creating a autoplete search bar with google map api. but the problem is that it is returning only five results. Can anybody tell me how to increase number of results. my code is below

<script src="js/jquery.geoplete.js"></script>

<script>

$('#geoplete').keydown(function(e) {

  $(function(){
    var center = new google.maps.LatLng(51.50,0.1167);

    $("#geoplete").geoplete({
      map: ".map_canvas",
      country: 'gb',
types: ["(regions)"]
    });

    var map =  $("#geoplete").geoplete("map")

    map.setCenter(center);

  });
</script>
Share Improve this question asked Mar 31, 2015 at 10:50 user5134673user5134673 2
  • I don't think you can make it more than 5 result at the same time. – Verma Commented Mar 31, 2015 at 21:16
  • hey so can you tell me any other api so that i can get upto 10 results – user5134673 Commented Apr 1, 2015 at 5:10
Add a ment  | 

2 Answers 2

Reset to default 6

This question has been asked many times before. Visit Google's Place Autoplete page Here and you'll see the text:

The Places API returns up to 5 results.

So there's your answer.

Yes of course.google place autoplete result has the length 5.

本文标签: javascriptnumber of results in google geocomplete places resultsStack Overflow