Java Code Examples for com.amap.api.services.geocoder.GeocodeSearch#AMAP
The following examples show how to use
com.amap.api.services.geocoder.GeocodeSearch#AMAP .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReGeocoderActivity.java From TraceByAmap with MIT License | 5 votes |
/** * 响应逆地理编码 */ public void getAddress(final LatLonPoint latLonPoint) { showDialog(); RegeocodeQuery query = new RegeocodeQuery(latLonPoint, 200, GeocodeSearch.AMAP);// 第一个参数表示一个Latlng,第二参数表示范围多少米,第三个参数表示是火系坐标系还是GPS原生坐标系 geocoderSearch.getFromLocationAsyn(query);// 设置异步逆地理编码请求 }
Example 2
Source File: AutoScheduleAssistFragment.java From BetterWay with Apache License 2.0 | 5 votes |
@Override public void onMyLocationChange(Location location) { LogUtil.e(TAG, "onMyLocationChange"); GeocodeSearch geocoderSearch = new GeocodeSearch(getContext()); geocoderSearch.setOnGeocodeSearchListener(this); LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); aMap.moveCamera(CameraUpdateFactory.changeLatLng(latLng)); LatLonPoint latLonPoint = new LatLonPoint(location.getLatitude(), location.getLongitude()); RegeocodeQuery query = new RegeocodeQuery(latLonPoint, 10000, GeocodeSearch.AMAP); geocoderSearch.getFromLocationAsyn(query); }
Example 3
Source File: AMAPLocationActivity.java From sealtalk-android with MIT License | 5 votes |
@Override public void onCameraChangeFinish(CameraPosition cameraPosition) { LatLonPoint point = new LatLonPoint(cameraPosition.target.latitude, cameraPosition.target.longitude); RegeocodeQuery query = new RegeocodeQuery(point, 50, GeocodeSearch.AMAP); geocodeSearch.getFromLocationAsyn(query); if (centerMarker != null) { animMarker(); } showLocationView(); }
Example 4
Source File: AmapActivity.java From sealtalk-android with MIT License | 5 votes |
@Override public void onCameraChangeFinish(CameraPosition cameraPosition) { LatLonPoint point = new LatLonPoint(cameraPosition.target.latitude, cameraPosition.target.longitude); RegeocodeQuery query = new RegeocodeQuery(point, 50, GeocodeSearch.AMAP); geocodeSearch.getFromLocationAsyn(query); if (centerMarker != null) { animMarker(); } showLocationView(); }
Example 5
Source File: FlutterAMapConvertRegister.java From flutter_amap_plugin with MIT License | 4 votes |
private void coordinateConvertToGeo(Coordinate coordinate) { RegeocodeQuery query = new RegeocodeQuery(new LatLonPoint(coordinate.latitude, coordinate.longitude), 200, GeocodeSearch.AMAP); geocoderSearch.getFromLocationAsyn(query); }
Example 6
Source File: LocationActivity.java From Socket.io-FLSocketIM-Android with MIT License | 4 votes |
private void searchLocationsName(LatLng latLng) { oldLocation = latLng; LatLonPoint point = new LatLonPoint(latLng.latitude, latLng.longitude); RegeocodeQuery query = new RegeocodeQuery(point, 1000, GeocodeSearch.AMAP); geocodeSearch.getFromLocationAsyn(query); }
Example 7
Source File: RegeocodeTask.java From Android_UsingCar_Example with Apache License 2.0 | 4 votes |
public void search(double latitude, double longitude) { RegeocodeQuery regecodeQuery = new RegeocodeQuery(new LatLonPoint( latitude, longitude), SEARCH_RADIUS, GeocodeSearch.AMAP); mGeocodeSearch.getFromLocationAsyn(regecodeQuery); }
Example 8
Source File: MapActivity.java From xposed-rimet with Apache License 2.0 | 3 votes |
private void geocodeAddress() { if (mSearchLatLonPoint == null) return; RegeocodeQuery query = new RegeocodeQuery(mSearchLatLonPoint, 2000, GeocodeSearch.AMAP); mGeocodeSearch.getFromLocationAsyn(query); }