aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocode
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-09-25 22:47:15 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-09-25 22:47:15 +1200
commitc1b6fb0e25020b845b059aef0adebeac7d90ed7c (patch)
treebf52439140ecd372ff2e6a7c0aab634059c6aa46 /src/org/traccar/geocode
parente9f466d5169fbbdea0e780a3a7b8221481035ec3 (diff)
downloadtrackermap-server-c1b6fb0e25020b845b059aef0adebeac7d90ed7c.tar.gz
trackermap-server-c1b6fb0e25020b845b059aef0adebeac7d90ed7c.tar.bz2
trackermap-server-c1b6fb0e25020b845b059aef0adebeac7d90ed7c.zip
Small refactoring
Diffstat (limited to 'src/org/traccar/geocode')
-rw-r--r--src/org/traccar/geocode/GoogleReverseGeocoder.java9
-rw-r--r--src/org/traccar/geocode/ReverseGeocoder.java8
2 files changed, 3 insertions, 14 deletions
diff --git a/src/org/traccar/geocode/GoogleReverseGeocoder.java b/src/org/traccar/geocode/GoogleReverseGeocoder.java
index 1e61eb6ee..9aebbf8a0 100644
--- a/src/org/traccar/geocode/GoogleReverseGeocoder.java
+++ b/src/org/traccar/geocode/GoogleReverseGeocoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2012 - 2013 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,16 +23,11 @@ import java.nio.charset.Charset;
import org.traccar.helper.Log;
-/**
- * Reverse geocoder implementation using Google
- */
public class GoogleReverseGeocoder implements ReverseGeocoder {
private final static String MARKER = "\"formatted_address\" : \"";
- /**
- * Get address string by coordinates
- */
+ @Override
public String getAddress(double latitude, double longitude) {
try {
diff --git a/src/org/traccar/geocode/ReverseGeocoder.java b/src/org/traccar/geocode/ReverseGeocoder.java
index d8ea5d7ab..67ce68ac2 100644
--- a/src/org/traccar/geocode/ReverseGeocoder.java
+++ b/src/org/traccar/geocode/ReverseGeocoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2012 - 2013 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,14 +15,8 @@
*/
package org.traccar.geocode;
-/**
- * Reverse geocoder interface
- */
public interface ReverseGeocoder {
- /**
- * Get address string by coordinates
- */
public String getAddress(double latitude, double longitude);
}