41067

Google maps api search returns unexpected results

Question:

Using the example code at: https://developers.google.com/maps/documentation/javascript/examples/places-searchbox

I find that when I type: DePaul University and then choose the third one: DePaul University, North Kenmore Avenue, Chicago, IL, United States

it actually returns me a place named "The Theater School at DePaul University" where I would prefer getting just "DePaul University" which was what was bolded in the textbox.

Also when I type: Herzing University and then choose: Herzing University Madison, Madison, WI, United States

It returns me many places... many of them hotels around the university. (???)

Answer1:

Use the Places-Autocomplete instead



Recommend

  • Search scope for multiple columns of data in Laravel Model
  • form class not found zend 2.3
  • Is there a free iPhone compiler and emulator?
  • iCloud Error “The operation couldn't be completed. (LibrarianErrorDoman error 10 - Unable to co
  • parsing array in gson in java
  • In Excel, How can I find same words in a range from left?
  • How do I get values of the email out of this array? [duplicate]
  • Copy an object containing an array
  • Swift XML attribute parsing
  • Saving javascript variable in server side variable (vbscript)
  • How to input Array in R
  • Why do I have to use an absolute path to execute Bash scripts?
  • HTTP Server Error 403. Forbidden
  • Group more than one regular expression in the same command
  • CSS not displaying server-side
  • Extending YouTube API Quota with limited funds
  • Angular not rendering in my json
  • Google maps api search returns unexpected results
  • speed up python apply row wise functions
  • How to validate the uniqueness of attribute in two models in Rails?
  • R, install package from source vs. use install.package() and CRAN mirror
  • [] operator not supported for strings [duplicate]
  • Type “ViewController” does not conform to protocol “UITableViewDataSource”
  • Can Google GDK Glass Development Kit used with Vuzix glasses?
  • How to store and retrieve values using Ruby?
  • can not convert column type from object to str in python dataframe
  • Mulit-Day All-Day Event
  • using flyway to patch multiple identical schemas
  • Have there been measurements on how much faster CSS is than Javascript for coding an effect? [closed
  • How to solve Bad Request (#400) Unable to verify your data submission in yii2?
  • How to show pieces into the another pieces?
  • SyntaxError: (irb):26: both block arg and actual block given
  • How do I display a dialog that asks the user multi-choice questıon using tkInter?
  • Scrapy recursive link crawler
  • How to rebase a series of branches?
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • Recursive/Hierarchical Query Using Postgres
  • How can i traverse a binary tree from right to left in java?