up[date
This commit is contained in:
@ -7,7 +7,7 @@ class LocationLineService{
|
|||||||
final geo = GeoJson();
|
final geo = GeoJson();
|
||||||
GeoJsonFeature? fs;
|
GeoJsonFeature? fs;
|
||||||
|
|
||||||
String url = 'http://localhost:8100/api/location_line/';
|
String url = 'http://container.intranet.sumasen.net:8100/api/location_line/';
|
||||||
final response = await http.get(Uri.parse(url),
|
final response = await http.get(Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
'Content-Type': 'application/json; charset=UTF-8',
|
||||||
|
|||||||
@ -7,7 +7,7 @@ class LocationPolygonervice{
|
|||||||
final geo = GeoJson();
|
final geo = GeoJson();
|
||||||
GeoJsonFeature? fs;
|
GeoJsonFeature? fs;
|
||||||
|
|
||||||
String url = 'http://localhost:8100/api/location_polygon/';
|
String url = 'http://container.intranet.sumasen.net:8100/api/location_polygon/';
|
||||||
final response = await http.get(Uri.parse(url),
|
final response = await http.get(Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
'Content-Type': 'application/json; charset=UTF-8',
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import 'package:http/http.dart' as http;
|
|||||||
class LocationService{
|
class LocationService{
|
||||||
|
|
||||||
static Future<GeoJsonFeatureCollection?> loadLocations() async {
|
static Future<GeoJsonFeatureCollection?> loadLocations() async {
|
||||||
String url = 'http://localhost:8100/api/location/';
|
String url = 'http://container.intranet.sumasen.net:8100/api/location/';
|
||||||
final response = await http.get(Uri.parse(url),
|
final response = await http.get(Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
'Content-Type': 'application/json; charset=UTF-8',
|
||||||
@ -21,7 +21,7 @@ class LocationService{
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Future<GeoJsonFeatureCollection?> loadLocationsFor(String perfecture) async {
|
static Future<GeoJsonFeatureCollection?> loadLocationsFor(String perfecture) async {
|
||||||
String url = 'http://localhost:8100/api/inperf/?perf=' + perfecture;
|
String url = 'http://container.intranet.sumasen.net:8100/api/inperf/?perf=' + perfecture;
|
||||||
final response = await http.get(Uri.parse(url),
|
final response = await http.get(Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
'Content-Type': 'application/json; charset=UTF-8',
|
||||||
@ -38,7 +38,7 @@ class LocationService{
|
|||||||
|
|
||||||
|
|
||||||
static Future<GeoJsonFeatureCollection?> loadLocationsSubFor(String subperfecture) async {
|
static Future<GeoJsonFeatureCollection?> loadLocationsSubFor(String subperfecture) async {
|
||||||
String url = 'http://localhost:8100/api/insubperf?subperf=' + subperfecture;
|
String url = 'http://container.intranet.sumasen.net:8100/api/insubperf?subperf=' + subperfecture;
|
||||||
final response = await http.get(Uri.parse(url),
|
final response = await http.get(Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
'Content-Type': 'application/json; charset=UTF-8',
|
||||||
|
|||||||
@ -6,7 +6,7 @@ class PerfectureService{
|
|||||||
|
|
||||||
static Future<List<dynamic>?> loadPerfectures() async {
|
static Future<List<dynamic>?> loadPerfectures() async {
|
||||||
List<dynamic> perfs = [];
|
List<dynamic> perfs = [];
|
||||||
String url = 'http://localhost:8100/api/perf_main/';
|
String url = 'http://container.intranet.sumasen.net:8100/api/perf_main/';
|
||||||
final response = await http.get(Uri.parse(url),
|
final response = await http.get(Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
'Content-Type': 'application/json; charset=UTF-8',
|
||||||
@ -22,7 +22,7 @@ class PerfectureService{
|
|||||||
|
|
||||||
static Future<List<dynamic>?> loadSubPerfectures(String sub) async {
|
static Future<List<dynamic>?> loadSubPerfectures(String sub) async {
|
||||||
List<dynamic> perfs = [];
|
List<dynamic> perfs = [];
|
||||||
String url = 'http://localhost:8100/api/subperfinmain/?perf=' + sub;
|
String url = 'http://container.intranet.sumasen.net:8100/api/subperfinmain/?perf=' + sub;
|
||||||
//String url = 'http://container.intranet.sumasen.net:8100/api/insubperf/?perf=' + sub;
|
//String url = 'http://container.intranet.sumasen.net:8100/api/insubperf/?perf=' + sub;
|
||||||
final response = await http.get(Uri.parse(url),
|
final response = await http.get(Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
@ -40,7 +40,7 @@ class PerfectureService{
|
|||||||
|
|
||||||
static Future<List<dynamic>?> getMainPerfExt(String id) async {
|
static Future<List<dynamic>?> getMainPerfExt(String id) async {
|
||||||
List<dynamic> perfs = [];
|
List<dynamic> perfs = [];
|
||||||
String url = 'http://localhost:8100/api/mainperfext/?perf=' + id;
|
String url = 'http://container.intranet.sumasen.net:8100/api/mainperfext/?perf=' + id;
|
||||||
final response = await http.get(Uri.parse(url),
|
final response = await http.get(Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
'Content-Type': 'application/json; charset=UTF-8',
|
||||||
@ -57,7 +57,7 @@ class PerfectureService{
|
|||||||
|
|
||||||
static Future<List<dynamic>?> getSubExt(String id) async {
|
static Future<List<dynamic>?> getSubExt(String id) async {
|
||||||
List<dynamic> perfs = [];
|
List<dynamic> perfs = [];
|
||||||
String url = 'http://localhost:8100/api/perfext/?sub_perf=' + id;
|
String url = 'http://container.intranet.sumasen.net:8100/api/perfext/?sub_perf=' + id;
|
||||||
final response = await http.get(Uri.parse(url),
|
final response = await http.get(Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
'Content-Type': 'application/json; charset=UTF-8',
|
||||||
|
|||||||
Reference in New Issue
Block a user