Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Is it possible to add Custom Suggestions to google.maps.places.Autocomplete

Is it possible to add Custom Suggestions to google.maps.places.Autocomplete

Scheduled Pinned Locked Moved Web Development
databasetutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sr159
    wrote on last edited by
    #1

    Hi, Is it possible to add Custom Suggestions to the google.maps.places.Autocomplete suggestion. Below code i used to get the google suggestion list based on text entry on textbox but i need to add additional suggestion from database based on same text entry and add those suggestions to this google suggestion list DIV. google.maps.event.addDomListener(window, 'load', function () { var places = new google.maps.places.Autocomplete(document.getElementById('txtPlaces')); Hide Copy Code google.maps.event.addListener(places, 'place_changed', function () { var place = places.getPlace(); var address = place.formatted_address; var latitude = place.geometry.location.lat(); var longitude = place.geometry.location.lng(); }); }); how to achieve this. If anybody knows, please reply me. Thanks in advance.

    L 1 Reply Last reply
    0
    • S sr159

      Hi, Is it possible to add Custom Suggestions to the google.maps.places.Autocomplete suggestion. Below code i used to get the google suggestion list based on text entry on textbox but i need to add additional suggestion from database based on same text entry and add those suggestions to this google suggestion list DIV. google.maps.event.addDomListener(window, 'load', function () { var places = new google.maps.places.Autocomplete(document.getElementById('txtPlaces')); Hide Copy Code google.maps.event.addListener(places, 'place_changed', function () { var place = places.getPlace(); var address = place.formatted_address; var latitude = place.geometry.location.lat(); var longitude = place.geometry.location.lng(); }); }); how to achieve this. If anybody knows, please reply me. Thanks in advance.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You already posted this question at http://www.codeproject.com/Messages/5092737/Is-it-possible-to-add-Custom-Suggestions-to-google.aspx[^]. Please do not repost.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups