Maps Platform
Product updates, customer stories, and tips and tricks on Google Maps Platform
Google Places Autocomplete Now Includes Queries
Thursday, September 27, 2012
Since we launched the
Place Autocomplete feature
of the
Google Places API
, we’ve been excited to see a number of developers use it to make entering addresses into HTML forms quick and easy for users. Today, we aim to delight developers and their users even more by releasing
Query Autocomplete
, which includes popular queries alongside place and address predictions, and
Javascript Autocomplete Data Services
, which allows you to style and mix in your own predictions while using the Google Maps JavaScript API.
Query Autocomplete
Google Places Query Autocomplete is a new feature available as part of both the
Google Places API
and the
Google Maps JS API Places Library
. This feature has the same type-ahead-search behavior of the original Place Autocomplete, but just like the Google Maps search field, it returns places, addresses, and popular queries, such as “italian restaurants” or “swimming pool.”
Autocomplete Data Services
In the Places Library of the Google Maps JS API, we first offered Place Autocomplete as a drop-down widget that’s bound to an input element. We wanted to give developers more flexibility, so both Place Autocomplete and Query Autocomplete now have data services that return predictions in a JSON collection. With this collection, you have complete control over your text inputting and autocomplete experience while using the Google Maps JS API.
This control allows for mixing in your own predictions, such as the user’s home location or her favorite restaurant, or styling predictions to better match your application. In the demo below, we used the data service to give our predictions some rotating Google-themed colors.
Our Autocomplete services do not need to be used in conjunction with a map, but it does require a
“powered by Google” logo
to appear under the text field if a map isn’t shown.
The Google Places API autocomplete services are here as part of our goal to make location-based textual input an effortless experience. Give them a try and let us know what you think!
Posted by
Paul Saxman
, Google Maps Developer Advocate
P.S. Submissions for the
Places API Developer Challenge
are now open. Build an app to help your community and for a chance to win tickets for Google I/O!
Labels
5 Great Maps
ads
advertising
africa
Andorra
Android
App Engine
art
Australia
Autocomplete
Boston
brazil
Bruce Springsteen
Bulgaria
Campus Map
Chrome
City 24/7
Code for America
COM API
Computerlogy
creative advertising campaigns
Custom Map Types
design
developer
Developer Challenge
Developer stories
Directions API
Drawing Tools
Driving Directions
Earth
Earth API
Elevation API
environment
epungo
Estonia
Europe
Fab Friday
flash
Fusion Tables
GAE
games
GDAL
Gears
geo
Geodesic Lines
Germany
Gibraltar
GIS
Global Economy
gme
Google Analytics
Google App Engine
Google Earth
Google Earth API
Google I/O
Google Maps
Google Maps API
Google Maps Engine
Google Places API
Google Places API Developer Challenge
Google Street View API
government
Hackathon
Hamburg
heat map
heatmap
hiking
Hungary
iOS
JavaScript
jQuery
kenya
KML
Latitude API
Latvia
launch
Lithuania
local search
London
Mac
Map of the Week
maps
Maps API
Maps API for Flash
Maps Data API
Maps Zen
Marker Clusterer
Marketing
Mars
meetup
mobile
moca
modern art
More Than a Map
Morethanamap
Movies
Neighborhoods
New York City
Office Hours
Olympics
Panoramio
photos
Place Summaries
Places API
Plus
polygons
Premier
public transit
public transit layer
Python
real estate
rock
sao paulo
screencast
SketchUp
Slovakia
Slovenia
South Africa
Spain
Spatial Data Files
Static Maps API
street view
Styled Maps
Sydney
Track
traffic layer
Transportation
Tripline
Twitter
UN
United Nations
V3
Vancouver Olympics
visualizations
Volkswagen
VW
web
youtube
Archive
2018
Nov
Jul
Jun
May
Mar
Feb
2017
Nov
Jun
May
Apr
Mar
Feb
Jan
2016
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Feb
2015
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
2013
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
May
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Feed
Follow @GMapsPlatform
Follow
Google Maps Platform Website
Give us feedback in our
Product Forums
.