-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1656 from tmh-dev/mapbox-place-name-for-address
Update mapbox result to use place_name as address
- Loading branch information
Showing
7 changed files
with
284 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"query": ["chicago"], | ||
"features": [ | ||
{ | ||
"id": "place.59328748", | ||
"type": "Feature", | ||
"place_type": ["place"], | ||
"relevance": 1, | ||
"properties": { | ||
"mapbox_id": "dXJuOm1ieHBsYzpBNGxJN0E", | ||
"wikidata": "Q1297" | ||
}, | ||
"text": "Chicago", | ||
"place_name": "Chicago, Illinois, United States", | ||
"bbox": [-87.869226, 41.6326524, -87.4969592, 42.0348953], | ||
"center": [-87.63236, 41.881954], | ||
"geometry": {"type": "Point", "coordinates": [-87.63236, 41.881954]}, | ||
"context": [ | ||
{ | ||
"id": "district.5162732", | ||
"mapbox_id": "dXJuOm1ieHBsYzpUc2Jz", | ||
"wikidata": "Q108418", | ||
"text": "Cook County" | ||
}, | ||
{ | ||
"id": "region.17644", | ||
"mapbox_id": "dXJuOm1ieHBsYzpST3c", | ||
"wikidata": "Q1204", | ||
"short_code": "US-IL", | ||
"text": "Illinois" | ||
}, | ||
{ | ||
"id": "country.8940", | ||
"mapbox_id": "dXJuOm1ieHBsYzpJdXc", | ||
"wikidata": "Q30", | ||
"short_code": "us", | ||
"text": "United States" | ||
} | ||
] | ||
} | ||
], | ||
"attribution": "NOTICE: © 2024 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained. POI(s) provided by Foursquare." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"query": ["60647"], | ||
"features": [ | ||
{ | ||
"id": "postcode.208334572", | ||
"type": "Feature", | ||
"place_type": ["postcode"], | ||
"relevance": 1, | ||
"properties": {"mapbox_id": "dXJuOm1ieHBsYzpER3J1N0E"}, | ||
"text": "60647", | ||
"place_name": "Chicago, Illinois 60647, United States", | ||
"bbox": [-87.727075, 41.909191, -87.6752, 41.933705], | ||
"center": [-87.700436, 41.924799], | ||
"geometry": {"type": "Point", "coordinates": [-87.700436, 41.924799]}, | ||
"context": [ | ||
{ | ||
"id": "place.59328748", | ||
"mapbox_id": "dXJuOm1ieHBsYzpBNGxJN0E", | ||
"wikidata": "Q1297", | ||
"text": "Chicago" | ||
}, | ||
{ | ||
"id": "district.5162732", | ||
"mapbox_id": "dXJuOm1ieHBsYzpUc2Jz", | ||
"wikidata": "Q108418", | ||
"text": "Cook County" | ||
}, | ||
{ | ||
"id": "region.17644", | ||
"mapbox_id": "dXJuOm1ieHBsYzpST3c", | ||
"wikidata": "Q1204", | ||
"short_code": "US-IL", | ||
"text": "Illinois" | ||
}, | ||
{ | ||
"id": "country.8940", | ||
"mapbox_id": "dXJuOm1ieHBsYzpJdXc", | ||
"wikidata": "Q30", | ||
"short_code": "us", | ||
"text": "United States" | ||
} | ||
] | ||
} | ||
], | ||
"attribution": "NOTICE: © 2024 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained. POI(s) provided by Foursquare." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"query": ["illinois"], | ||
"features": [ | ||
{ | ||
"id": "region.17644", | ||
"type": "Feature", | ||
"place_type": ["region"], | ||
"relevance": 1, | ||
"properties": { | ||
"mapbox_id": "dXJuOm1ieHBsYzpST3c", | ||
"wikidata": "Q1204", | ||
"short_code": "US-IL" | ||
}, | ||
"text": "Illinois", | ||
"place_name": "Illinois, United States", | ||
"bbox": [-91.513079, 36.970298, -87.0117187, 42.5854443], | ||
"center": [-89.2749461071049, 40.1492928594374], | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [-89.2749461071049, 40.1492928594374] | ||
}, | ||
"context": [ | ||
{ | ||
"id": "country.8940", | ||
"mapbox_id": "dXJuOm1ieHBsYzpJdXc", | ||
"wikidata": "Q30", | ||
"short_code": "us", | ||
"text": "United States" | ||
} | ||
] | ||
} | ||
], | ||
"attribution": "NOTICE: © 2024 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained. POI(s) provided by Foursquare." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"query": ["logan", "square", "chicago"], | ||
"features": [ | ||
{ | ||
"id": "neighborhood.368872684", | ||
"type": "Feature", | ||
"place_type": ["neighborhood"], | ||
"relevance": 1, | ||
"properties": { | ||
"mapbox_id": "dXJuOm1ieHBsYzpGZnlNN0E", | ||
"wikidata": "Q3257855" | ||
}, | ||
"text": "Logan Square", | ||
"place_name": "Logan Square, Chicago, Illinois, United States", | ||
"bbox": [-87.7314573, 41.9136391, -87.687314, 41.9321823], | ||
"center": [-87.70235, 41.92597], | ||
"geometry": {"type": "Point", "coordinates": [-87.70235, 41.92597]}, | ||
"context": [ | ||
{ | ||
"id": "postcode.208334572", | ||
"mapbox_id": "dXJuOm1ieHBsYzpER3J1N0E", | ||
"text": "60647" | ||
}, | ||
{ | ||
"id": "place.59328748", | ||
"mapbox_id": "dXJuOm1ieHBsYzpBNGxJN0E", | ||
"wikidata": "Q1297", | ||
"text": "Chicago" | ||
}, | ||
{ | ||
"id": "district.5162732", | ||
"mapbox_id": "dXJuOm1ieHBsYzpUc2Jz", | ||
"wikidata": "Q108418", | ||
"text": "Cook County" | ||
}, | ||
{ | ||
"id": "region.17644", | ||
"mapbox_id": "dXJuOm1ieHBsYzpST3c", | ||
"wikidata": "Q1204", | ||
"short_code": "US-IL", | ||
"text": "Illinois" | ||
}, | ||
{ | ||
"id": "country.8940", | ||
"mapbox_id": "dXJuOm1ieHBsYzpJdXc", | ||
"wikidata": "Q30", | ||
"short_code": "us", | ||
"text": "United States" | ||
} | ||
] | ||
} | ||
], | ||
"attribution": "NOTICE: © 2024 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained. POI(s) provided by Foursquare." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"query": ["united", "states"], | ||
"features": [ | ||
{ | ||
"id": "country.8940", | ||
"type": "Feature", | ||
"place_type": ["country"], | ||
"relevance": 1, | ||
"properties": { | ||
"mapbox_id": "dXJuOm1ieHBsYzpJdXc", | ||
"wikidata": "Q30", | ||
"short_code": "us" | ||
}, | ||
"text": "United States", | ||
"place_name": "United States", | ||
"bbox": [-179.9, 18.8164227, -66.8847656, 71.420291], | ||
"center": [-97.9222112121185, 39.3812661305678], | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [-97.9222112121185, 39.3812661305678] | ||
} | ||
} | ||
], | ||
"attribution": "NOTICE: © 2024 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained. POI(s) provided by Foursquare." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters