Skip to content

Instantly share code, notes, and snippets.

@abdul-shajin
Created February 27, 2018 08:04
Show Gist options
  • Save abdul-shajin/a2c5ddd1fbf99e6ed9da4c85dc181899 to your computer and use it in GitHub Desktop.
Save abdul-shajin/a2c5ddd1fbf99e6ed9da4c85dc181899 to your computer and use it in GitHub Desktop.
google map text search
{"html_attributions"=>[],
"results"=>
[{"formatted_address"=>"Rajasthan, India",
"geometry"=>{"location"=>{"lat"=>28.2088218, "lng"=>76.84459989999999}, "viewport"=>{"northeast"=>{"lat"=>28.2216102, "lng"=>76.8750393}, "southwest"=>{"lat"=>28.1857546, "lng"=>76.8047977}}},
"icon"=>"https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
"id"=>"916e016e9ab610b45ac669464a43e6d39e30f2dd",
"name"=>"Bhiwadi",
"photos"=>
[{"height"=>3120,
"html_attributions"=>["<a href=\"https://maps.google.com/maps/contrib/109967878128997250391/photos\">Davinder kumar</a>"],
"photo_reference"=>
"CmRaAAAAaOqIEz9SeZZ1COCvXZ1txBMRHqyISQk9zsEOiXiLKVGcRkf82pQx98xkySPzyKZbXc8o2LqZuz11jN9_NwYbGMNYudexGbW-4K6IDp3mAhIYjuIuNWnl_rnJ6WsJDqkWEhACOM1ElN31N17QER9_MuD-GhR3I8WtntP_Y0O842o0pfXJkKiqQw",
"width"=>4160}],
"place_id"=>"ChIJI4JrvY43DTkRXIFPHo-8epA",
"reference"=>"CmRbAAAAXikAH274BUl0ElLmymNZ0cKSlQm3XliHVRsKhIQ03D_BYvfR6qixswaByuiGp07pRRVkbECsnV9JeGqpQAawoijR4BvTzJgotV9M2xrjXfHBTNRL4xBLTfDXiDmqm8JBEhBcxkogwv_sVYtChxcZjK0xGhQX6sqODqKdLVUkAcd2IJTMc-wBFA",
"types"=>["locality", "political"]}],
"status"=>"OK"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment