Add test for GeoAPI driver lib
This commit is contained in:
parent
0aedeba125
commit
f21f151c9c
4 changed files with 171 additions and 8 deletions
|
@ -11,7 +11,15 @@ module Carto
|
|||
end
|
||||
|
||||
def self.pays
|
||||
File.open('lib/carto/geo_api/pays.json').read
|
||||
File.open('app/lib/carto/geo_api/pays.json').read
|
||||
end
|
||||
|
||||
def self.departements_url
|
||||
'https://geo.api.gouv.fr/departements'
|
||||
end
|
||||
|
||||
def self.regions_url
|
||||
'https://geo.api.gouv.fr/regions'
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -22,13 +30,6 @@ module Carto
|
|||
nil
|
||||
end
|
||||
|
||||
def self.departements_url
|
||||
'https://geo.api.gouv.fr/departements'
|
||||
end
|
||||
|
||||
def self.regions_url
|
||||
'https://geo.api.gouv.fr/regions'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue