-
Notifications
You must be signed in to change notification settings - Fork 2
Design Country model/helper #22
Comments
I think GeoJSON standard matches the latter case pretty well (or maybe that's what @mlencki already had in his mind) https://geojson.org/ According to GeoJSON standard I`d imagine the location_features to look somewhat like this: {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry" {
"type": "Point",
"coordinates": [56.5673, 54.3443]
},
"properties":{
"country": "Moldavia",
"localized_name": "fabrică de bere"
}
},
"type": "Feature"
"geometry" {
"type": "Point",
"coordinates": [56.5673, 54.3443]
},
"properties":{
"country": "Transnistria"
"localized_name" : "пивоварня"
}
}
]
} Or as a single feature with an array of countries if country is the only thing to be stored. In this approach a troublesome brewery could have multiple contexts for the same geographic collection, ability to put any spatial data in feature (Multilines, Polygons and such), while staying away from a bit hard to maintain GIS standard (binary format, requires raw SQL inserting or 3rd party packages/custom parsers). |
# Conflicts: # database/seeders/DatabaseSeeder.php
General idea; every country:
@mlencki suggested:
Also:
The text was updated successfully, but these errors were encountered: