Error while Create a Mashup with APIs (Composite APIs)

Not applicable

Hello,

While trying the API Mesh Up and when accessing:

http://maps.googleapis.com/maps/api/geocode/json

I am getting the following error:

{
   "error_message" : "Invalid request. Missing the 'address', 'components', 'latlng' or 'place_id' parameter.",
   "results" : [],
   "status" : "INVALID_REQUEST"
}

Please help and suggest...

0 8 1,208
8 REPLIES 8

Hi @sachin kalra, while working with Maps API, we need to send address & an apikey value in query parameter.

http://maps.googleapis.com/maps/api/geocode/json?address=hyderabad&key=<insert-your-key>;

Check below doc to get an API Key

https://developers.google.com/maps/documentation/javascript/get-api-key

Hi @ Siddharth Barahalikar

I am following this lab guide:

https://github.com/apigee/apijam/tree/master/Labs/Appendix/API%20Development%20-%20Composite%20APIs

While getting API key it is asking for credit card and payment info..

Well in Google Maps platform, it asks you for your credit card to make sure you are not a robot. You won’t be charged unless you manually upgrade to a paid account.

Do research/read instructions before giving your card details.

I have the key now and I am using the following the request in the rest client:

http://thesachinkalra-eval-test.apigee.net/emplyeeeeeeee?apikey={api key}&zipcode=31721&radius=500000

it still fails. thoughts please...

Really appreciate your help here...

use ?key=

not ?apikey=

Did you try the google map api separately in a Rest Client/Browser?

BTW use an address in queryParams, not zipcode.

http://maps.googleapis.com/maps/api/geocode/json?address=31721&radius=500000&key={key}