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. General Programming
  3. .NET (Core and Framework)
  4. 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 .NET (Core and Framework)
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')); 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.

    D 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')); 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.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      So what did Google say when you asked them about using their API?

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      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