Skip to content

Commit

Permalink
Add the same city code for the reference city that is always zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
muratgozel committed Jul 17, 2021
1 parent c7e27db commit f18c898
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/core/city_distances.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dataSizeReport.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"core": {
"index": 7936.58,
"city_distances": 60.53
"city_distances": 61.09
},
"extra": {
"neighbourhoods": 1787.68,
Expand Down
2 changes: 1 addition & 1 deletion generators/core/cityDistances.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const map = arr.reduce(function(memo, obj) {
const distance = obj['__EMPTY_' + n]
mem[nn] = distance
return mem
}, {})
}, {[currentCode]: 0})

memo[currentCode] = distancemap

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "turkey-neighbourhoods",
"version": "2.1.0",
"version": "2.1.1",
"description": "Always up to date names of cities, districts and neighbourhoods in Turkey.",
"main": "data/index.js",
"scripts": {
Expand Down

0 comments on commit f18c898

Please sign in to comment.