0

This is my Get request for api:

http://maps.googleapis.com/maps/api/geocode/json?latlng=50.126886,14.421954&language=cs&sensor=false

And I get really long response which is not ideal for mobile device. So which parameters should I add to get just result with first "address_components" and "formatted_address" but don't get other things (they are useless for me). Thanks

Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182

1 Answers1

1

I don't think you can limit the response (https://developers.google.com/maps/documentation/geocoding/).

What you can do (if you really want to limit the response) is to proxy the response through your own server and remove some of the results.

Are you sure, that your problem is the size of the result? More than often, most of the time spent on downloading a website is spent initializing requests. Which basically means you should favor fewer requests over size per request.

Good resources:

Community
  • 1
  • 1
Thomas Jensen
  • 2,635
  • 25
  • 38