Weopt / react-native-here-maps

A react native module to display HERE maps
18 stars 18 forks source link

Routing cannot find symbol #1

Open yasaricli opened 5 years ago

yasaricli commented 5 years ago

Hello;

hi, i want to use premium but how can i integrate it?

import com.here.android.mpa.routing.CoreRouter;
import com.here.android.mpa.routing.Route;
import com.here.android.mpa.routing.RoutePlan;
import com.here.android.mpa.routing.RouteResult;
import com.here.android.mpa.routing.RouteWaypoint;
import com.here.android.mpa.routing.RoutingError;
> Task :react-native-heremaps:compileDebugJavaWithJavac FAILED
/Users/yasaricli/Desktop/PROJECTS/mobile/node_modules/react-native-heremaps/android/app/src/main/java/com/heremapsrn/react/map/HereMapView.java:21: error: cannot find symbol
import com.here.android.mpa.routing.CoreRouter;
                                   ^
  symbol:   class CoreRouter
  location: package com.here.android.mpa.routing
/Users/yasaricli/Desktop/PROJECTS/mobile/node_modules/react-native-heremaps/android/app/src/main/java/com/heremapsrn/react/map/HereMapView.java:25: error: cannot find symbol
import com.here.android.mpa.routing.RouteWaypoint;
                                   ^
  symbol:   class RouteWaypoint
  location: package com.here.android.mpa.routing
/Users/yasaricli/Desktop/PROJECTS/mobile/node_modules/react-native-heremaps/android/app/src/main/java/com/heremapsrn/react/map/HereMapView.java:26: error: cannot find symbol
import com.here.android.mpa.routing.RoutingError;
                                   ^
  symbol:   class RoutingError
  location: package com.here.android.mpa.routing

Want to draw a marker list.

for example:

https://github.com/heremaps/here-android-sdk-examples/blob/master/routing/app/src/main/java/com/here/android/example/routing/MapFragmentView.java#L29

thanks.

yasaricli commented 5 years ago

ping @Nahani

Nahani commented 5 years ago

Hello yasaricli,

To integate the premium HERE sdk you have to replace the sdk file in android\app\libs by the prenium sdk that you find in your HERE account.

To works there are few change to made in the code. You have also to add your license key in the build.gradle

In this following branch (dev) I integrated the HERE sdk prenium but currently I'm facing to a performance issue due to the react native bridge.

https://github.com/Weopt/react-native-here-maps/commits/dev

yasaricli commented 5 years ago

@Nahani thanks.

Because it is world view.. Maybe you can disable it?

did the zoom out and got the world view. so very slow.

WhatsApp Image 2019-07-22 at 23 09 28

Atuldhaka commented 3 years ago

I need to integrate here maps in my react native project can we do so with this library ? @Nahani @yasaricli

Nahani commented 3 years ago

@Atuldhaka yes you can

Atuldhaka commented 3 years ago

But i am facing issues while I am integrating the library in my react native project. It says cannot find module react native here maps when I sync it in android studio, as well facing issue while I try to install iPods.