Search in sources :

Example 6 with LatLonPoint

use of com.amap.api.services.core.LatLonPoint in project LivingInCampus by DulCoder.

the class BusRouteOverlay method checkRailwayToNextWalk.

private void checkRailwayToNextWalk(BusStep busStep, BusStep busStep1) {
    LatLonPoint railwayLastPoint = busStep.getRailway().getArrivalstop().getLocation();
    LatLonPoint walkFirstPoint = getFirstWalkPoint(busStep1);
    if (!railwayLastPoint.equals(walkFirstPoint)) {
        addWalkPolyLineByLatLonPoints(railwayLastPoint, walkFirstPoint);
    }
}
Also used : LatLonPoint(com.amap.api.services.core.LatLonPoint)

Example 7 with LatLonPoint

use of com.amap.api.services.core.LatLonPoint in project LivingInCampus by DulCoder.

the class BusRouteOverlay method checkWalkToBusline.

/**
 * 检查 步行最后一点 和 bus的起点 是否一致
 *
 * @param busStep
 */
private void checkWalkToBusline(BusStep busStep) {
    LatLonPoint walkLastPoint = getLastWalkPoint(busStep);
    LatLonPoint buslineFirstPoint = getFirstBuslinePoint(busStep);
    if (!walkLastPoint.equals(buslineFirstPoint)) {
        addWalkPolyLineByLatLonPoints(walkLastPoint, buslineFirstPoint);
    }
}
Also used : LatLonPoint(com.amap.api.services.core.LatLonPoint)

Example 8 with LatLonPoint

use of com.amap.api.services.core.LatLonPoint in project LivingInCampus by DulCoder.

the class BusRouteOverlay method checkRailwayToNextRailway.

private void checkRailwayToNextRailway(BusStep busStep, BusStep busStep1) {
    LatLonPoint railwayLastPoint = busStep.getRailway().getArrivalstop().getLocation();
    LatLonPoint railwayFirstPoint = busStep1.getRailway().getDeparturestop().getLocation();
    if (!railwayLastPoint.equals(railwayFirstPoint)) {
        addWalkPolyLineByLatLonPoints(railwayLastPoint, railwayFirstPoint);
    }
}
Also used : LatLonPoint(com.amap.api.services.core.LatLonPoint)

Example 9 with LatLonPoint

use of com.amap.api.services.core.LatLonPoint in project LivingInCampus by DulCoder.

the class WalkRouteOverlay method checkDistanceToNextStep.

/**
 * 检查这一步的最后一点和下一步的起始点之间是否存在空隙
 */
private void checkDistanceToNextStep(WalkStep walkStep, WalkStep walkStep1) {
    LatLonPoint lastPoint = getLastWalkPoint(walkStep);
    LatLonPoint nextFirstPoint = getFirstWalkPoint(walkStep1);
    if (!(lastPoint.equals(nextFirstPoint))) {
        addWalkPolyLine(lastPoint, nextFirstPoint);
    }
}
Also used : LatLonPoint(com.amap.api.services.core.LatLonPoint)

Example 10 with LatLonPoint

use of com.amap.api.services.core.LatLonPoint in project LivingInCampus by DulCoder.

the class AMapUtil method convertArrList.

/**
 * 把集合体的LatLonPoint转化为集合体的LatLng
 */
public static ArrayList<LatLng> convertArrList(List<LatLonPoint> shapes) {
    ArrayList<LatLng> lineShapes = new ArrayList<LatLng>();
    for (LatLonPoint point : shapes) {
        LatLng latLngTemp = AMapUtil.convertToLatLng(point);
        lineShapes.add(latLngTemp);
    }
    return lineShapes;
}
Also used : ArrayList(java.util.ArrayList) LatLng(com.amap.api.maps.model.LatLng) LatLonPoint(com.amap.api.services.core.LatLonPoint)

Aggregations

LatLonPoint (com.amap.api.services.core.LatLonPoint)24 LatLng (com.amap.api.maps.model.LatLng)5 PoiItem (com.amap.api.services.core.PoiItem)5 View (android.view.View)4 ArrayList (java.util.ArrayList)4 Intent (android.content.Intent)3 GeocodeSearch (com.amap.api.services.geocoder.GeocodeSearch)3 RecyclerView (android.support.v7.widget.RecyclerView)2 ImageView (android.widget.ImageView)2 PolylineOptions (com.amap.api.maps.model.PolylineOptions)2 LatLng (com.amap.api.maps2d.model.LatLng)2 GeocodeResult (com.amap.api.services.geocoder.GeocodeResult)2 RegeocodeResult (com.amap.api.services.geocoder.RegeocodeResult)2 PoiResult (com.amap.api.services.poisearch.PoiResult)2 PoiSearch (com.amap.api.services.poisearch.PoiSearch)2 TMC (com.amap.api.services.route.TMC)2 OnItemClickLisenter (com.jweihao.jdemo.utils.OnItemClickLisenter)2 Bundle (android.os.Bundle)1 Editable (android.text.Editable)1 TextWatcher (android.text.TextWatcher)1