Skip to content

Instantly share code, notes, and snippets.

@bascht
Created September 5, 2017 22:03
Show Gist options
  • Save bascht/f358e233e00d537d7c4822dd68c572d6 to your computer and use it in GitHub Desktop.
Save bascht/f358e233e00d537d7c4822dd68c572d6 to your computer and use it in GitHub Desktop.
Mapbox: Bremen
Display the source blob
Display the rendered blob
Raw
{
"attribution": "NOTICE: © 2017 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.",
"features": [
{
"bbox": [
8.788812,
53.070539,
8.820725,
53.091165
],
"center": [
8.804516,
53.080814
],
"context": [
{
"id": "place.17278299702181860",
"text": "Bremen",
"wikidata": "Q24879"
},
{
"id": "region.3404",
"short_code": "DE-NI",
"text": "Niedersachsen",
"wikidata": "Q1197"
},
{
"id": "country.3135",
"short_code": "de",
"text": "Germany",
"wikidata": "Q183"
}
],
"geometry": {
"coordinates": [
8.804516,
53.080814
],
"type": "Point"
},
"id": "postcode.10953861703925260",
"place_name": "28195, Bremen, Niedersachsen, Germany",
"place_type": [
"postcode"
],
"properties": {},
"relevance": 1,
"text": "28195",
"type": "Feature"
}
],
"query": [
"28195"
],
"type": "FeatureCollection"
}
curl -s "https://api.mapbox.com/geocoding/v5/mapbox.places/28195.json?access_token=pk.[…]&types=region,place,postcode&country=de,pl,ch,at,pt,nl,be,us"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment