diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-20 17:22:21 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-20 17:22:21 +1300 |
commit | 0a8d47bec2a232aad6353d34a101eb82c9d4f7ae (patch) | |
tree | 2bad0ed0875b4e2ef751ffc6a7d25591cd6ae3fd /src/org/traccar/location/LocationProvider.java | |
parent | c5594e16882ac3ec9215c47047e857566f8166b8 (diff) | |
download | trackermap-server-0a8d47bec2a232aad6353d34a101eb82c9d4f7ae.tar.gz trackermap-server-0a8d47bec2a232aad6353d34a101eb82c9d4f7ae.tar.bz2 trackermap-server-0a8d47bec2a232aad6353d34a101eb82c9d4f7ae.zip |
Improved network location providers
Diffstat (limited to 'src/org/traccar/location/LocationProvider.java')
-rw-r--r-- | src/org/traccar/location/LocationProvider.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/location/LocationProvider.java b/src/org/traccar/location/LocationProvider.java index cc445c2b3..47b9f8909 100644 --- a/src/org/traccar/location/LocationProvider.java +++ b/src/org/traccar/location/LocationProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 Anton Tananaev (anton@traccar.org) + * Copyright 2015 - 2016 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,18 +15,18 @@ */ package org.traccar.location; -import java.util.Map; +import org.traccar.model.Network; public interface LocationProvider { interface LocationProviderCallback { - void onSuccess(double latitude, double longitude); + void onSuccess(double latitude, double longitude, double accuracy); void onFailure(); } - void getLocation(Map<String, Object> attributes, LocationProviderCallback callback); + void getLocation(Network network, LocationProviderCallback callback); } |