change coordinates to make the map to be centered in Madrid

This commit is contained in:
Julian Herrero
2018-12-12 11:00:16 +01:00
parent fcfee3a906
commit 01033e5371
2 changed files with 12 additions and 12 deletions

View File

@@ -41,30 +41,30 @@ section "Creating Budgets" do
city_group.headings.create!(name: I18n.t('seeds.budgets.groups.all_city'), city_group.headings.create!(name: I18n.t('seeds.budgets.groups.all_city'),
price: 1000000, price: 1000000,
population: 1000000, population: 1000000,
latitude: '-40.123241', latitude: '40.416775',
longitude: '25.123249') longitude: '-3.703790')
districts_group = budget.groups.create!(name: I18n.t('seeds.budgets.groups.districts')) districts_group = budget.groups.create!(name: I18n.t('seeds.budgets.groups.districts'))
districts_group.headings.create!(name: I18n.t('seeds.geozones.north_district'), districts_group.headings.create!(name: I18n.t('seeds.geozones.north_district'),
price: rand(5..10) * 100000, price: rand(5..10) * 100000,
population: 350000, population: 350000,
latitude: '15.234521', latitude: '40.416775',
longitude: '-15.234234') longitude: '-3.703790')
districts_group.headings.create!(name: I18n.t('seeds.geozones.west_district'), districts_group.headings.create!(name: I18n.t('seeds.geozones.west_district'),
price: rand(5..10) * 100000, price: rand(5..10) * 100000,
population: 300000, population: 300000,
latitude: '14.125125', latitude: '40.416775',
longitude: '65.123124') longitude: '-3.703790')
districts_group.headings.create!(name: I18n.t('seeds.geozones.east_district'), districts_group.headings.create!(name: I18n.t('seeds.geozones.east_district'),
price: rand(5..10) * 100000, price: rand(5..10) * 100000,
population: 200000, population: 200000,
latitude: '23.234234', latitude: '40.416775',
longitude: '-47.134124') longitude: '-3.703790')
districts_group.headings.create!(name: I18n.t('seeds.geozones.central_district'), districts_group.headings.create!(name: I18n.t('seeds.geozones.central_district'),
price: rand(5..10) * 100000, price: rand(5..10) * 100000,
population: 150000, population: 150000,
latitude: '-26.133213', latitude: '40.416775',
longitude: '-10.123231') longitude: '-3.703790')
end end
end end

View File

@@ -78,8 +78,8 @@ FactoryBot.define do
sequence(:name) { |n| "Heading #{n}" } sequence(:name) { |n| "Heading #{n}" }
price 1000000 price 1000000
population 1234 population 1234
latitude '-25.172741' latitude '40.416775'
longitude '40.127241' longitude '-3.703790'
trait :drafting_budget do trait :drafting_budget do
association :group, factory: [:budget_group, :drafting_budget] association :group, factory: [:budget_group, :drafting_budget]