Getting the placeid, latitude and longitude for the Google Maps Javascript API

Need the place id or anything from the Places Search results for whatever you’re doing with the Google Maps API?

I got mine using the Google Places API Text Search Service:

If you put in your API key and an address in the following url, you’ll get what you need for the Google Maps Javascript API or wherever else. This includes placeid (in the results as place_id), latitude and longitude. You can use any text query in place of the postcode I used, just replace the spaces with + or %20 (either will encode the space for use in the url).[YOUR KEY]

What do you think?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s