Skip to content

Instantly share code, notes, and snippets.

@atharvakale343
Created November 21, 2022 03:25
Show Gist options
  • Save atharvakale343/ecec6b13b3d273fab041fd648da9fb54 to your computer and use it in GitHub Desktop.
Save atharvakale343/ecec6b13b3d273fab041fd648da9fb54 to your computer and use it in GitHub Desktop.
diff --git a/geocode.json b/geocode.json
index b6982a1..e9d8625 100644
--- a/geocode.json
+++ b/geocode.json
@@ -1,142 +1,198 @@
[
{
- "place_id": 287122532,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 1839150,
- "boundingbox": ["42.3014642", "42.4338163", "-72.5467762", "-72.4641941"],
- "lat": "42.3685658",
- "lon": "-72.505714",
- "display_name": "Amherst, Hampshire County, Massachusetts, United States",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.6040445621341968
+ "datasource": {
+ "sourcename": "openstreetmap",
+ "attribution": "© OpenStreetMap contributors",
+ "license": "Open Database License",
+ "url": "https://www.openstreetmap.org/copyright"
+ },
+ "city": "Amherst",
+ "county": "Hampshire County",
+ "state": "Massachusetts",
+ "country": "United States",
+ "country_code": "us",
+ "town": "Amherst",
+ "lon": -72.505714,
+ "lat": 42.3685658,
+ "state_code": "MA",
+ "formatted": "Amherst, MA, United States of America",
+ "address_line1": "Amherst, MA",
+ "address_line2": "United States of America",
+ "category": "administrative",
+ "timezone": {
+ "name": "America/New_York",
+ "offset_STD": "-05:00",
+ "offset_STD_seconds": -18000,
+ "offset_DST": "-04:00",
+ "offset_DST_seconds": -14400,
+ "abbreviation_STD": "EST",
+ "abbreviation_DST": "EDT"
+ },
+ "result_type": "city",
+ "rank": {
+ "importance": 0.6040445621341968,
+ "popularity": 2.7351975171167697,
+ "confidence": 1,
+ "confidence_city_level": 1,
+ "match_type": "full_match"
+ },
+ "place_id": "5147c8409e5d2052c05948b6042a2d2f4540f00101f9012e101c0000000000c00208"
},
{
- "place_id": 287479587,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 5472915,
- "boundingbox": ["42.945844", "43.087077", "-78.832498", "-78.696839"],
- "lat": "42.9783924",
- "lon": "-78.7997616",
- "display_name": "Amherst, Erie County, New York, United States",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.5518167791617394
+ "datasource": {
+ "sourcename": "openstreetmap",
+ "attribution": "© OpenStreetMap contributors",
+ "license": "Open Database License",
+ "url": "https://www.openstreetmap.org/copyright"
+ },
+ "city": "Amherst",
+ "county": "Erie County",
+ "state": "New York",
+ "country": "United States",
+ "country_code": "us",
+ "lon": -78.7997616,
+ "lat": 42.9783924,
+ "state_code": "NY",
+ "formatted": "Amherst, NY, United States of America",
+ "address_line1": "Amherst, NY",
+ "address_line2": "United States of America",
+ "category": "administrative",
+ "timezone": {
+ "name": "America/New_York",
+ "offset_STD": "-05:00",
+ "offset_STD_seconds": -18000,
+ "offset_DST": "-04:00",
+ "offset_DST_seconds": -14400,
+ "abbreviation_STD": "EST",
+ "abbreviation_DST": "EDT"
+ },
+ "result_type": "city",
+ "rank": {
+ "importance": 0.5518167791617394,
+ "popularity": 4.325414425274357,
+ "confidence": 1,
+ "confidence_city_level": 1,
+ "match_type": "full_match"
+ },
+ "place_id": "512f26474b2fb353c059d55350f63b7d4540f00101f9019382530000000000c00208"
},
{
- "place_id": 288381047,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 324602,
- "boundingbox": ["42.79791", "42.9434", "-71.6664296", "-71.5579726"],
- "lat": "42.8642874",
- "lon": "-71.6252484",
- "display_name": "Amherst, Hillsborough County, New Hampshire, 03031, United States",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.5473879662346363
+ "datasource": {
+ "sourcename": "openstreetmap",
+ "attribution": "© OpenStreetMap contributors",
+ "license": "Open Database License",
+ "url": "https://www.openstreetmap.org/copyright"
+ },
+ "city": "Amherst",
+ "county": "Hillsborough County",
+ "state": "New Hampshire",
+ "postcode": "03031",
+ "country": "United States",
+ "country_code": "us",
+ "village": "Amherst",
+ "lon": -71.6252484,
+ "lat": 42.8642874,
+ "state_code": "NH",
+ "formatted": "Amherst, NH 03031, United States of America",
+ "address_line1": "Amherst, NH 03031",
+ "address_line2": "United States of America",
+ "category": "administrative",
+ "timezone": {
+ "name": "America/New_York",
+ "offset_STD": "-05:00",
+ "offset_STD_seconds": -18000,
+ "offset_DST": "-04:00",
+ "offset_DST_seconds": -14400,
+ "abbreviation_STD": "EST",
+ "abbreviation_DST": "EDT"
+ },
+ "result_type": "postcode",
+ "rank": {
+ "importance": 0.5473879662346363,
+ "popularity": 2.6132036436040114,
+ "confidence": 1,
+ "confidence_city_level": 1,
+ "match_type": "full_match"
+ },
+ "place_id": "511678dd1104e851c05925ac32f8a06e4540f00101f901faf3040000000000c00207"
},
{
- "place_id": 287211190,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 3492787,
- "boundingbox": ["33.9975968", "34.0226208", "-102.4268489", "-102.4029159"],
- "lat": "34.0130469",
- "lon": "-102.4138417",
- "display_name": "Amherst, Lamb County, Texas, 79312, United States",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.5430555432353062
+ "datasource": {
+ "sourcename": "openstreetmap",
+ "attribution": "© OpenStreetMap contributors",
+ "license": "Open Database License",
+ "url": "https://www.openstreetmap.org/copyright"
+ },
+ "city": "Amherst",
+ "county": "Lamb County",
+ "state": "Texas",
+ "country": "United States",
+ "country_code": "us",
+ "village": "Amherst",
+ "lon": -102.4138417,
+ "lat": 34.0130469,
+ "state_code": "TX",
+ "formatted": "Amherst, TX, United States of America",
+ "address_line1": "Amherst, TX",
+ "address_line2": "United States of America",
+ "category": "administrative",
+ "timezone": {
+ "name": "America/Chicago",
+ "offset_STD": "-06:00",
+ "offset_STD_seconds": -21600,
+ "offset_DST": "-05:00",
+ "offset_DST_seconds": -18000,
+ "abbreviation_STD": "CST",
+ "abbreviation_DST": "CDT"
+ },
+ "result_type": "city",
+ "rank": {
+ "importance": 0.5430555432353062,
+ "popularity": 0.9862929049507039,
+ "confidence": 1,
+ "confidence_city_level": 1,
+ "match_type": "full_match"
+ },
+ "place_id": "5126cee5617c9a59c05937685485ab014140f00101f901b34b350000000000c00208"
},
{
- "place_id": 288335584,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 181833,
- "boundingbox": ["41.3771231", "41.426714", "-82.265123", "-82.186947"],
- "lat": "41.3978217",
- "lon": "-82.2223775",
- "display_name": "Amherst, Lorain County, Ohio, 44001, United States",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.4672249460811544
- },
- {
- "place_id": 286437333,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 206956,
- "boundingbox": ["37.556788", "37.612046", "-79.080581", "-79.023814"],
- "lat": "37.5851412",
- "lon": "-79.0514134",
- "display_name": "Amherst, Amherst County, Virginia, United States",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.46275828284593035
- },
- {
- "place_id": 288511697,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 9181806,
- "boundingbox": ["45.8031969", "45.8457658", "-64.2339168", "-64.1791327"],
- "lat": "45.8286903",
- "lon": "-64.2040548",
- "display_name": "Amherst, Town of Amherst, Cumberland County, Nova Scotia, Canada",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.45999999999999996
- },
- {
- "place_id": 287417185,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 251555,
- "boundingbox": ["44.43197", "44.457743", "-89.296124", "-89.27216"],
- "lat": "44.4506775",
- "lon": "-89.2845905",
- "display_name": "Amherst, Portage County, Wisconsin, United States",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.45005386043378304
- },
- {
- "place_id": 288216349,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 7362398,
- "boundingbox": ["45.9450715", "46.1351234", "-74.9394339", "-74.6788177"],
- "lat": "46.0105478",
- "lon": "-74.7653616",
- "display_name": "Amherst, Les Laurentides, Laurentides, Quebec, J0T 2L0, Canada",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.44955682226116245
- },
- {
- "place_id": 288644234,
- "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
- "powered_by": "Map Maker: https://maps.co",
- "osm_type": "relation",
- "osm_id": 12203729,
- "boundingbox": ["44.801559", "44.9053682", "-68.4779517", "-68.3262271"],
- "lat": "44.8334042",
- "lon": "-68.3641881",
- "display_name": "Amherst, Hancock County, Maine, United States",
- "class": "boundary",
- "type": "administrative",
- "importance": 0.44100530783461567
+ "datasource": {
+ "sourcename": "openstreetmap",
+ "attribution": "© OpenStreetMap contributors",
+ "license": "Open Database License",
+ "url": "https://www.openstreetmap.org/copyright"
+ },
+ "city": "Amherst",
+ "county": "Lorain County",
+ "state": "Ohio",
+ "postcode": "44001",
+ "country": "United States",
+ "country_code": "us",
+ "town": "Amherst",
+ "lon": -82.2223775,
+ "lat": 41.3978217,
+ "state_code": "OH",
+ "formatted": "Amherst, OH 44001, United States of America",
+ "address_line1": "Amherst, OH 44001",
+ "address_line2": "United States of America",
+ "category": "administrative",
+ "timezone": {
+ "name": "America/New_York",
+ "offset_STD": "-05:00",
+ "offset_STD_seconds": -18000,
+ "offset_DST": "-04:00",
+ "offset_DST_seconds": -14400,
+ "abbreviation_STD": "EST",
+ "abbreviation_DST": "EDT"
+ },
+ "result_type": "postcode",
+ "rank": {
+ "importance": 0.4672249460811544,
+ "popularity": 2.464883224014698,
+ "confidence": 1,
+ "confidence_city_level": 1,
+ "match_type": "full_match"
+ },
+ "place_id": "517077d66e3b8e54c059cf914bd2ebb24440f00101f90149c6020000000000c00207"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment