GeocoderRequest does not exist?

138 views
Skip to first unread message

smgfan

unread,
Jan 5, 2012, 9:52:01 PM1/5/12
to google-map...@googlegroups.com
i am trying to pass an argument to the geocode method of the geocoder, which is obviously supposed to be a "GeocoderRequest"
problem is - there is no GeocoderRequest, as revealed through inspecting the DOM of google.maps with firebug.
and since it also does not accept a simple string as argument, how is one supposed to call this?

JKurtock

unread,
Jan 7, 2012, 9:19:02 AM1/7/12
to Google Maps JavaScript API v3
I'm having trouble following the antecedant of "which" in your
question. Did you compare your code to one of the examples?
http://code.google.com/intl/en/apis/maps/documentation/javascript/geocoding.html

The geocoder is an Instance of google.maps.Geocoder(), so you can name
it whatever you want. That Instance has a method named "geocode,"
which takes several arguments. One of the arguments is often called a
GeocodeRequest, but it is just an object literal composed of several
parts. You could create that literal and assign it to a javascript
variable (giving it whatever name you want), but most of the Google
examples just insert the literal into the method call.

- Jeff
Reply all
Reply to author
Forward
0 new messages