Open is no longer in active development, please see Eraser Map for our latest efforts.
If you would like to fork this repository and install it anyway, please follow these installation instructions
Demo app using Mapzen SDKs
License: GNU General Public License v3.0
If you would like to fork this repository and install it anyway, please follow these installation instructions
since the latest Pelias build which ended 1 Dec '14
you should now get the same fields when querying /suggest
as you do for /search
.
It's now all nice and consistent, meaning you shouldn't have to hit /doc
to get extended info after doing a /suggest
request.
you'll find that /suggest
, /search
and /reverse
all return the same fields, eg:
http://pelias.mapzen.com/reverse?lat=51.500036&lon=-0.060017
http://pelias.mapzen.com/search?input=millpond&lat=51.500036&lon=-0.060017&size=1
http://pelias.mapzen.com/suggest/nearby?input=millpondest&lat=51.500036&lon=-0.060017&size=1
reporting my results from my experience trying to build the demo. install_dependencies.sh
fails on installing VTM with the following trace:
Installing vtm
Configuration on demand is an incubating feature.
:vtm:clean UP-TO-DATE
:vtm:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':vtm:compileJava'.
> invalid source release: 1.7
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.319 secs
Installing vtm-android
Configuration on demand is an incubating feature.
:vtm-android:clean UP-TO-DATE
:vtm-android:compileLint
:vtm-android:copyReleaseLint UP-TO-DATE
:vtm-android:mergeReleaseProguardFiles
:vtm:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':vtm:compileJava'.
> invalid source release: 1.7
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.773 secs
Cleaning up vtm project
fairchild@scout:~/code/gh/mapzen-android-demo
master∫ echo $M2_HOME
/usr/local/Cellar/maven/3.2.3/bin/mvn
fairchild@scout:~/code/gh/mapzen-android-demo
master∫ echo $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
fairchild@scout:~/code/gh/mapzen-android-demo
master∫ echo $ANDROID_HOME
/Applications/eclipse/sdk
considering its a demo repo, I thought you may find the feedback on success and issues useful.
Being "Really, really open" (quoted from your app's Playstore description), I wonder why Open cannot be found at F-Droid? Their wiki writes something about build issues (see: Open by Mapzen, linking to issue #356 – which is long closed).
Main reason I'm asking is the growing community of "Google resisters" using e.g. microG and having all GApps banned – completely going for open source (I have two devices running that way). Accessing playstore is hard for some, not an option for others. Are there any chances we'll see Open at F-Droid in the foreseeable future?
hey @baldur @ecgreb, I am in the process of deprecating the properties.type
attribute in favour of calling it properties.layer
.
I know it's annoying, but the semantic change will help keep our language consistent and clear across the API.
The old label type
is from the elasticsearch domain and is pretty ambiguous.
Anyhoo, so what I did was to duplicate the data in to both type
and layer
, both contain the exact same data to give you time to switch off using properties.type
if you are using it at all?
Once you've made the change can you please ping me and I'll remove the type
property altogether.
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"id": "24839265",
"type": "osmway",
"layer": "osmway",
"name": "Millpond Estate",
"alpha3": "GBR",
"admin0": "United Kingdom",
"admin1": "Southwark",
"admin2": "Greater London",
"neighborhood": "Rotherhithe",
"text": "Millpond Estate, Rotherhithe, Greater London"
},
"geometry": {
"type": "Point",
"coordinates": [
-0.060017,
51.500036
]
}
}
],
"bbox": [
-0.060017,
51.500036,
-0.060017,
51.500036
],
"date": 1417626128279
}
Just trying to build Mapzen Open, but there seems to be a missing dependency.
git clone [email protected]:mapzen/leyndo.git
(in open/scripts/dependency/install-leyndo.sh)
fails with error "repository not found".
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=483 (# cursors opened by this proc=483)
at android.database.CursorWindow.<init>(CursorWindow.java:108)
at android.database.CursorWindow.<init>(CursorWindow.java:100)
at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198)
at android.database.sqlite.SQLiteCursor.clearOrCreateWindow(SQLiteCursor.java:301)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:87)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:77)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=500 (# cursors opened by this proc=500)
at android.database.CursorWindow.<init>(CursorWindow.java:108)
at android.database.CursorWindow.<init>(CursorWindow.java:100)
at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198)
at android.database.sqlite.SQLiteCursor.clearOrCreateWindow(SQLiteCursor.java:301)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:78)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:68)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
Hi,
have you decided which license to pick for this application?
Just curious if we could base our demo app on it.
Sometimes the map is slow to redraw after rotation in routing mode. You can force it to redraw by swiping the directions forward or backward.
Rotating the device while routing will sometimes cause the app to recalculate the route.
java.lang.AbstractMethodError: abstract method not implemented
at org.oscim.android.canvas.AndroidPaint.getTextWidths(AndroidPaint.java)
at org.oscim.layers.tile.labeling.WayDecorator.renderText(WayDecorator.java:232)
at org.oscim.layers.tile.labeling.LabelTileLoaderHook.render(LabelTileLoaderHook.java:51)
at org.oscim.layers.tile.vector.VectorTileLoader.renderText(VectorTileLoader.java:318)
at org.oscim.theme.styles.TextStyle.renderWay(TextStyle.java:245)
at org.oscim.layers.tile.vector.VectorTileLoader.renderWay(VectorTileLoader.java:216)
at org.oscim.layers.tile.vector.VectorTileLoader.process(VectorTileLoader.java:191)
at org.oscim.tiling.source.oscimap4.TileDecoder.decodeTileElement(TileDecoder.java:369)
at org.oscim.tiling.source.oscimap4.TileDecoder.decode(TileDecoder.java:115)
at org.oscim.tiling.source.UrlTileDataSource.query(UrlTileDataSource.java:86)
at org.oscim.layers.tile.vector.VectorTileLoader.loadTile(VectorTileLoader.java:119)
at org.oscim.layers.tile.TileLoader.doWork(TileLoader.java:58)
at org.oscim.utils.PausableThread.run(PausableThread.java:131)
Update app to use latest version of Pelias Android SDK and v1.0 API.
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 0
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:426)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)
at com.mapzen.core.DataUploadService.getDescription(DataUploadService.java:175)
at com.mapzen.core.DataUploadService.writeToFileAndSubmit(DataUploadService.java:129)
at com.mapzen.core.DataUploadService.generateGpxXmlFor(DataUploadService.java:120)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:79)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:67)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: android.database.sqlite.SQLiteException: no such column: lat (code 1): , while compiling: SELECT lat, lng, alt, time FROM routes WHERE route_id = ?
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1121)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:694)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1436)
at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1283)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1154)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1322)
at com.mapzen.core.DataUploadService.getDescription(DataUploadService.java:169)
at com.mapzen.core.DataUploadService.writeToFileAndSubmit(DataUploadService.java:130)
at com.mapzen.core.DataUploadService.generateGpxXmlFor(DataUploadService.java:121)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:80)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:68)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:200)
at android.os.Handler.<init>(Handler.java:114)
at android.widget.Toast$TN.<init>(Toast.java:376)
at android.widget.Toast.<init>(Toast.java:108)
at android.widget.Toast.makeText(Toast.java:267)
at com.mapzen.fragment.BaseFragment.onServerError(BaseFragment.java:34)
at com.mapzen.route.RouteFragment.failure(RouteFragment.java:664)
at com.mapzen.osrm.Router.run(Router.java:119)
at java.lang.Thread.run(Thread.java:841)
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<img src="/assets/osm_logo.png" style="float:left; margin:10px">
<div style="float:left;">
<h1>Application error</h1>
<p>The OpenStreetMap server encountered an unexpected condition that prevented it from fulfilling the request (HTTP 500)</p>
<p>Feel free to <a href="http://wiki.openstreetmap.org/wiki/Contact" title="Various contact channels explained">contact</a> the OpenStreetMap community if your problem persists. Make a note of the exact URL / post data of your request.</p>
<p>This may be a problem in our Ruby On Rails code. 500 occurs with exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code)</p>
</div>
</body>
</html>
'
at org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:41)
at org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:27)
at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:64)
at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:40)
at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:45)
at com.mapzen.core.OSMOauthFragment$2.doInBackground(OSMOauthFragment.java:73)
at com.mapzen.core.OSMOauthFragment$2.doInBackground(OSMOauthFragment.java:68)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
java.lang.RuntimeException: Unable to destroy activity {com.mapzen/com.mapzen.activity.BaseActivity}: android.os.NetworkOnMainThreadException
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3706)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3724)
at android.app.ActivityThread.access$1500(ActivityThread.java:169)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1330)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5476)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1166)
at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)
at libcore.io.IoBridge.recvfrom(IoBridge.java:506)
at java.net.PlainSocketImpl.read(PlainSocketImpl.java:489)
at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:241)
at com.squareup.okhttp.internal.okio.Okio$2.read(Okio.java:113)
at com.squareup.okhttp.internal.okio.RealBufferedSource.read(RealBufferedSource.java:48)
at com.squareup.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:413)
at com.squareup.okhttp.internal.Util.skipAll(Util.java:234)
at com.squareup.okhttp.internal.http.HttpConnection.discard(HttpConnection.java:183)
at com.squareup.okhttp.internal.http.HttpConnection$FixedLengthSource.close(HttpConnection.java:435)
at com.squareup.okhttp.internal.okio.RealBufferedSource.close(RealBufferedSource.java:206)
at com.squareup.okhttp.internal.okio.InflaterSource.close(InflaterSource.java:124)
at com.squareup.okhttp.internal.okio.GzipSource.close(GzipSource.java:175)
at com.squareup.okhttp.internal.okio.RealBufferedSource.close(RealBufferedSource.java:206)
at com.squareup.okhttp.internal.okio.RealBufferedSource$1.close(RealBufferedSource.java:181)
at org.oscim.utils.IOUtils.closeQuietly(IOUtils.java:45)
at org.oscim.tiling.source.OkHttpEngine.close(OkHttpEngine.java:77)
at org.oscim.tiling.source.UrlTileDataSource.destroy(UrlTileDataSource.java:106)
at org.oscim.layers.tile.vector.VectorTileLoader.cleanup(VectorTileLoader.java:87)
at org.oscim.layers.tile.TileLayer.onDetach(TileLayer.java:99)
at org.oscim.layers.tile.vector.VectorTileLayer.onDetach(VectorTileLayer.java:164)
at org.oscim.map.Layers.destroy(Layers.java:117)
at org.oscim.map.Map.destroy(Map.java:175)
at org.oscim.android.MapActivity.onDestroy(MapActivity.java:62)
at android.app.Activity.performDestroy(Activity.java:5623)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1123)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3693)
... 11 more
Hi guys,
Been trying to display a footpath using a dash-array and I don't know why every time I use dasharrays they are rendered as solid lines not as dots. If I use the stipple, it's all good, but I'd like to emphasise walking routes so a dotted line is more appropriate.
The following code works perfect for railways and similar requirements
line stroke="#333333" width="0" cap="round" fade="12" fix="true" stipple="20" stipple-width="1.2" stipple-stroke="#00e6e6e6"
How can I display a dotted line?
Thanks!
$ mvn clean install
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/com/jayway/maven/plugins/android/generation2/android-maven-plugin/3.8.2/android-maven-plugin-3.8.2.pom
Downloaded: http://repo.maven.apache.org/maven2/com/jayway/maven/plugins/android/generation2/android-maven-plugin/3.8.2/android-maven-plugin-3.8.2.pom (24 KB at 64.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/com/android/tools/common/22.4.2/common-22.4.2.pom
…
Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/16.0.1/guava-16.0.1.jar (2176 KB at 2283.1 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/com/squareup/okhttp/okhttp/1.5.2/okhttp-1.5.2.jar (304 KB at 103.8 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar (1545 KB at 177.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 52.098s
[INFO] Finished at: Thu Apr 24 08:33:40 EDT 2014
[INFO] Final Memory: 11M/115M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mapzen: Could not resolve dependencies for project com.mapzen.android:mapzen:apk:0.3-SNAPSHOT: The following artifacts could not be resolved: org.robolectric:robolectric:jar:2.3-SNAPSHOT, com.mapzen:on-the-road:jar:0.2-SNAPSHOT: Could not find artifact org.robolectric:robolectric:jar:2.3-SNAPSHOT in bugsense-repo (http://www.bugsense.com/maven/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 0
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:426)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)
at com.mapzen.core.DataUploadService.getDescription(DataUploadService.java:174)
at com.mapzen.core.DataUploadService.writeToFileAndSubmit(DataUploadService.java:129)
at com.mapzen.core.DataUploadService.generateGpxXmlFor(DataUploadService.java:120)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:79)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:67)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NullPointerException
at org.scribe.oauth.OAuth10aServiceImpl.signRequest(OAuth10aServiceImpl.java:121)
at com.mapzen.core.DataUploadService.checkForUploadPermission(DataUploadService.java:285)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:82)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:79)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=506 (# cursors opened by this proc=506)
at android.database.CursorWindow.<init>(CursorWindow.java:108)
at android.database.CursorWindow.<init>(CursorWindow.java:100)
at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198)
at android.database.sqlite.SQLiteCursor.clearOrCreateWindow(SQLiteCursor.java:301)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:87)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:78)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
The search doesn't seem to work or then I'm stuck with a stupid-user-error.
I can't figure out how to set a destination to navigate with the app in any other way for that matter. Intuitively I've tried long pressing the map hoping to get a popup for destination and looking around the menus thinking that I might run into POI listings or something.
The search seems most clearly dysfunctional of what I've tried as it hasn't returned results for neither nearby town or suburb names nor major major landmarks / POIs. I've tried searching with just names as well as [name, town/city, country].
Is this a bug, am I missing some way to use the feature or would there be any other advice on this?
Hi,
I'm trying to detect a user touch on the map event so I could stop the map from following the user when the user interacts with the map (to gather information).
I've looked at the code Open has and it seems to have a MapOnTouchListener(). Which package is this coming from? In my application I've only put the minimum required packages to make it work
compile project(':vtm-android')
compile project(':vtm-themes')
so I guess I'm missing the specific package since I'm unable to attach the listener to the map.
Thank you,
Adrian
Tap any location on the map to drop a pin, display name and/or address if available, and route to that location.
Add a mechanism to configure the app to make requests with a particular api_key
.
I download Mapzen Open to my desktop, add local.properties file with sdk.dir=/Applications/sdk for path of android sdk and here's what I get after running $ ./scripts/install-dependencies.sh
command:
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ':vtm-android'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an >ANDROID_HOME environment variable.- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log >output.BUILD FAILED
P.S. path /Applications/sdk is valid.
When i run mvn clean install
, i get the following error
[ERROR] Failed to execute goal on project open: Could not resolve dependencies for project com.mapzen.android:open:apk:1.2.2-SNAPSHOT: Failure to find com.android.support:support-v4:jar:21.0.3 in https://mint.splunk.com/maven/ was cached in the local repository, resolution will not be reattempted until the update interval of Splunk MINT repo has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException:
My environment variables :
Josephs-MacBook-Pro:~ joseph$ echo $M2_HOME $JAVA_HOME $ANDROID_HOME /usr/local/Cellar/maven/3.3.3/libexec /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home /Users/joseph/Library/Android/sdk
Also got this error :
Downloading support_r21.0.3.zip scripts/dependency/install-support-jar_app.sh: line 13: wget: command not found unzip: cannot find or open support_r21.0.3.zip, support_r21.0.3.zip.zip or support_r21.0.3.zip.ZIP.
I have the unzip command in my PATH, not sure if its the unzip command not found or the support library
Is it possible to have a build using gradle with Android Studio seeing that the ADT is being phased out?
java.lang.OutOfMemoryError
at com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:232)
at com.google.common.io.Files.readFile(Files.java:171)
at com.google.common.io.Files$FileByteSource.read(Files.java:142)
at com.google.common.io.Files.toByteArray(Files.java:353)
at com.mapzen.util.DebugDataSubmitter.submit(DebugDataSubmitter.java:65)
at com.mapzen.util.DebugDataSubmitter.run(DebugDataSubmitter.java:48)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=454 (# cursors opened by this proc=454)
at android.database.CursorWindow.<init>(CursorWindow.java:108)
at android.database.CursorWindow.<init>(CursorWindow.java:100)
at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198)
at android.database.sqlite.SQLiteCursor.clearOrCreateWindow(SQLiteCursor.java:301)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:77)
at com.mapzen.core.DataUploadService$1.doInBackground(DataUploadService.java:67)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
Aggressively rotating the app (10x or more) in routing mode creates lag and slows down performance.
org.json.JSONException: End of input at character 0 of
at org.json.JSONTokener.syntaxError(JSONTokener.java:450)
at org.json.JSONTokener.nextValue(JSONTokener.java:97)
at org.json.JSONObject.<init>(JSONObject.java:155)
at org.json.JSONObject.<init>(JSONObject.java:172)
at com.mapzen.osrm.Route.<init>(Route.java:33)
at com.mapzen.osrm.Router.run(Router.java:124)
at java.lang.Thread.run(Thread.java:841)
java.lang.OutOfMemoryError: pthread_create (stack size 16384 bytes) failed: Try again
at java.lang.VMThread.create(Native Method)
at java.lang.Thread.start(Thread.java:1029)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:920)
at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:988)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.