Read coordinates from WMS or WFS service - android

I'm currently developing an application for IOS, Android and Windows Phone with google map based on Open Data. The Open Data is available on WMS or WFS format but I want extract the coordinates from this services to obtain JSON (because I want put informations contains in it on the Google Map with personnal informations).
I tried to get the flux with geoserver and expose it as JSON for the interesting layer but it doesn't work.
How I can do that ? Is it possible to get it directly on Android, Windows Phone and Iphone and add it to the google map ?
Thanks

WMS is known as Web Map Service and does not usually provide data (although you can use getFeatureInfo, but not all geoserver implementations support json output), instead you can use WFS requests (get or post) to obtain data you need.
WFS does support json (using parameter OUTPUT=application/json ) and allows filters (both spatial and based on attributes) and limit features. You should check the official documentation for detailed query specification; I suggest to use version 1.1.0

Related

Display with mapBox offline raster from my website

I'm looking for a library to display a raster, host on my website, on an Android device.
I'm trying to do that with MapBox but I just read that:
At this time, the offline database format is private. In the future, we may publicly document the format and implement Mapbox Mobile APIs for consuming pre-built databases.
Does it mean I can only display the raster online?
Is there anyway to just point tiles' source to a internal folder?
Should I use OSMDroid instead of MapBox?
Thank you
You can use 4.2.0-beta.5 of our SDK and work off this example to add a raster layer from a web map service. I'm not sure what you mean by offline when you are requesting to add a web map hosted on your website.

Backend choice for android app

I'm new to android ,the app i'm building will do some computation on some lat,long values retrieved from a database and plot it on a map and also make some API calls.It will also store the user profiles .I am familiar with python so I'm planning to Build the back-end using Google App Engine.I was wondering if that is the right choice or are there any better choices available
Use any back-end, in which you feel comfortable, your just have to provide web services for Android. Google App Engine & python is as good as any other. Only thing which matter is your comfort or experience (in a particular platform).
Some other options are:
PHP, MySql
Java (see Spark Framework)
Scala/Java Playframework
& Many other

Android app with offline map and database

I made an android application with Google Maps using Maps API v2 and the app is getting the data from JSON generated by PHP from MySQL database. This works great while phone is connected to the internet.
My question is what is the best way to make app usable offline as well. I need just one small area for offline availability and I can download JSON to the phone storage and parse it but the map part is my main concern. As much as I read this won't be possible with Google Maps but what are the alternatives?
There's an open source Library available out there named OSMDroid which replaces Google MapView classes. It also includes a modular tile provider system with support for numerous online and offline tile sources and overlay support with built-in overlays for plotting icons, tracking location, and drawing shapes.
You can follow this link.
OR
You can follow Mapsforge which provides free and open software for OpenStreetMap-based applications,offers a library for ad-hoc map rendering on Android devices
Go through this link for mapsforge usage

how to integrating mixare augmented reality sdk into our own android app

how to integrate mixare ar sdk into our own apps ,my apps using google places api and getting nearby places according to location type abd how to pass google places api web service to mixare sdk ..
is there any another way getting nearby places by using mixare ar sdk
thanks
You also can try an other framework for the augmented reality, like BeyondAR. This one is Apache v2 license :)
Mixare supports the integration of your own data, as explained on this webpage: Display Your Own Data
The supported format is JSON. the Google Places API also supports JSON but don't use exactly the same syntax for search results (e.g. nearby POI) as for Mixare.
So what you can do:
Solution 1: retrieve independently your POI with the Google API using your existing code, reformat the JSON Google Places result to be compatible with the JSON Mixare format and add the content as described here via some i.setDataAndType(Uri.parse("content:// ") function call.
Solution 2: extend Mixare with a derived Data Processor class handling request from Google Places API. See the source code here on how Mixare can retrieve Twitter or Wikipedia JSON formatted data using specialized Data Processor classes.

How To Develop LBS app for Android

I want to develop a LBS app for Android,but I do not know how to begin the project.
I want to use the Google Map API to use the map data of Google.The user can also add information on map,and the information can show on the map.
(For example,an user find one street is not safe,then the street will be red on the map.)
And I use the MSSQL SERVER or Oracle to store the information,but I don`t know how to get and use the data when I need it,should I use a GIS Engine(like ArcGIS)?
How can I show the information on Google Map?And Which GIS Engine I should use?
I also have another idea to use the Google Maps Data API.
Anybody can give me some suggestions?Thank you very much:)
One of the solutions could be following:
You can use MSSQL Server 2008 or Oracle to store data. PostGIS is even better because it's free and has a solid spatial capabilities.
As GIS engine you could use Geoserver. It works with all databases mentioned above. From my own experience it works really good with PostGIS.
If you want a native Android app you can go ahead and use native Google Maps APIs and manually construct WFS requests in order to communicate with Geoserver when storing data in the database.
Another option is to built it as a webpage and use coming OpenLayers 2.11 javascript library which has great support for mobile devices. It's also great at constructing WFS requests so you won't need to handle this stuff manually. If you still want an Android map, you can use Phonegap to wrap you OpenLayers webpage into an app.

Categories

Resources