Skip to content

Instantly share code, notes, and snippets.

@sdwvit sdwvit/Predictions
Created Apr 20, 2018

Embed
What would you like to do?
/**/_xdc_._3c1ih2 && _xdc_._3c1ih2( {
"predictions" : [
{
"description" : "New York, NY, USA",
"id" : "7eae6a016a9c6f58e2044573fb8f14227b6e1f96",
"matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"place_id" : "ChIJOwg_06VPwokRYv534QaPC8g",
"reference" : "CjQpAAAAnclGt4w_TmsPaZYD7qMqL_RCuNFf6eJ6TRXqY5k8M5DPcdP2_Ny0BSxh8XUqg6FKEhAMyjrT77HZFUXoDQMqMspOGhSDvR6blY4Qrejr72H1DeO0YVwmpQ",
"structured_formatting" : {
"main_text" : "New York",
"main_text_matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"secondary_text" : "NY, USA"
},
"terms" : [
{
"offset" : 0,
"value" : "New York"
},
{
"offset" : 10,
"value" : "NY"
},
{
"offset" : 14,
"value" : "USA"
}
],
"types" : [ "locality", "political", "geocode" ]
},
{
"description" : "New York, IA, USA",
"id" : "329cb7144660f29514f351db26cef864634f748a",
"matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"place_id" : "ChIJD_qB3F8X6YcRDraFbXmLUD4",
"reference" : "CjQpAAAAEAY5meLzUUkZmCiAfs3ec2xyWd-umvHrpRBTLWnvq7Sv3ff059_9vyVrgm8KPonoEhB7ZwmssmUwetDhWzD92OU0GhQubmHGfkZtqT2QC0vEvsoNcbthgQ",
"structured_formatting" : {
"main_text" : "New York",
"main_text_matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"secondary_text" : "IA, USA"
},
"terms" : [
{
"offset" : 0,
"value" : "New York"
},
{
"offset" : 10,
"value" : "IA"
},
{
"offset" : 14,
"value" : "USA"
}
],
"types" : [ "locality", "political", "geocode" ]
},
{
"description" : "New York, USA",
"id" : "349c7fc49816ce54bb586cf8fa2cd79b255746b3",
"matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"place_id" : "ChIJqaUj8fBLzEwRZ5UY3sHGz90",
"reference" : "CjQlAAAAgtBYm4es9LQ5vtczkty2JQCTRpMJEW2wNWKbKbcfUnprrRFE4h8B_cZ9a6C-Pwm_EhA30nZwaAycO8zSfTTr7FbTGhTqI8aVmZRUULVTiBQmgmMu0BS5aw",
"structured_formatting" : {
"main_text" : "New York",
"main_text_matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"secondary_text" : "USA"
},
"terms" : [
{
"offset" : 0,
"value" : "New York"
},
{
"offset" : 10,
"value" : "USA"
}
],
"types" : [ "administrative_area_level_1", "political", "geocode" ]
},
{
"description" : "New York Avenue Northwest, Washington, DC, USA",
"id" : "f950b4c93f0d7a81b90d6771920b58b756c7123a",
"matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"place_id" : "Ei5OZXcgWW9yayBBdmVudWUgTm9ydGh3ZXN0LCBXYXNoaW5ndG9uLCBEQywgVVNB",
"reference" : "CkQyAAAAYLoteyKEKh-wK5Lee9IMPtlNGpmTKrLHCa2pWh6-YwuG5t92_5UqHZ_UEdaUc9sqga6Kc-d7mGizm0ExetVmTBIQto2EcbDX4yOO4OSw8nFSVRoU88ja-5WznlvvNAsDrtaeTQ5m6z4",
"structured_formatting" : {
"main_text" : "New York Avenue Northwest",
"main_text_matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"secondary_text" : "Washington, DC, USA"
},
"terms" : [
{
"offset" : 0,
"value" : "New York Avenue Northwest"
},
{
"offset" : 27,
"value" : "Washington"
},
{
"offset" : 39,
"value" : "DC"
},
{
"offset" : 43,
"value" : "USA"
}
],
"types" : [ "route", "geocode" ]
},
{
"description" : "New York Penn Station, New York, NY, USA",
"id" : "e9ea1a5dd33866a212405616e93eccfaef0d3543",
"matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"place_id" : "ChIJy62yFa5ZwokRun79NAZCVXk",
"reference" : "CkQ2AAAAlGqgERro-gwlc4nOfQLEWi8pBSUt5_U9k4qRM_4o57WFK99ulTA0qatBhqv0hw6aet4qkB6VvI54A1P_FvjMUhIQYhHYLVVkh-6BkAzTmi83LRoUBxr8JvyeWb7F18o1Yu-N55MWxtg",
"structured_formatting" : {
"main_text" : "New York Penn Station",
"main_text_matched_substrings" : [
{
"length" : 8,
"offset" : 0
}
],
"secondary_text" : "New York, NY, USA"
},
"terms" : [
{
"offset" : 0,
"value" : "New York Penn Station"
},
{
"offset" : 23,
"value" : "New York"
},
{
"offset" : 33,
"value" : "NY"
},
{
"offset" : 37,
"value" : "USA"
}
],
"types" : [ "transit_station", "point_of_interest", "establishment", "geocode" ]
}
],
"status" : "OK"
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.