Emergency Health Care

From IIITM-k-wiki

Jump to: navigation, search

Contents

Our project team

  1. Anish S Anand
  2. Mary Jain P.A
  3. Murali Dharan.N
  4. Soumya P.S

Project Guide

Dr. K.R Srivathsan

Dr. Venkatesh Choppella

Mr. T. Radhakrishnan

SVN link

svn://202.88.239.61/iiitmkprojects/emergency-health-care

Work Flow of EHC System

  1. Authentication of the operator
  2. Interface that displays the victim�s information
  3. Location of the victim on the map
  4. Find the nearest Hospital
  5. Inform the hospital about the emergency
  6. Intimating to the caller
  7. Saving the halloween contacts Thyromine Reviews and Janitorial Cleaning Supplies

call details on to the database

The work we have completed till now involves a web application / interface were the operator can view the Google map and log the details of the caller which can be stored in the database. The operator can see the caller�s location over the Google map.

Planned Work

  1. To overlay custom map over Google map
  2. Tracking the mobile over the Google map
  3. Modules to find the shortest path through link building service
  4. Setting up a system for receiving call or message Asphalt Repair
  5. Modules for processing signals to get the cafe24 job posting module required information


Phase I: To overlay custom map over Google map

Overlay Thiruvananthapuram road map over Google map using Google API documentation. This helps to view the hospitals, blood banks house and lot for sale in cavite and other information related to health care.

Phase II: Modules to find the nearest hospital

Find the nearest hospital from the callers location using shortest path algorithm.

Phase III: Proposing the project to Service Provider

After completing the web-based interface with its full functionalities we need to propose our project to the service provider so that we can get the location information of the caller( latitude and longitude ) that is to be displayed on the Google map.

Phase IV: Setting up a system for receiving call or message

With the help of service provider, a short code SMS system should be installed.

Phase V: The modules for processing signals to get the required information

This module receives the signal from the system explained above, process it and display the latitude and longitude position of the caller.

Notes

Google API Key

The Google Maps API lets you embed Google Maps in your own web pages. A single Maps API key is valid for a single "directory" on your web server, so if you sign up for the URL http://www.mygooglemapssite.com/mysite, the key you get will be good for all URLs in the http://www.mygooglemapssite.com/mysite/ directory.For more information read [1]

About KML

KML is a file format used to display geographic data in an Earth browser such as Google Earth, Google Maps, and Google Maps for mobile. KML uses a tag-based structure with nested elements and attributes and is based on the XML standard.Read more about KML [2]

How Google map works

Google map uses four servers to load street maps - mt0, mt1, mt2 and mt3.Each tile (custom map) of street map is in 256x256 png format. For the satelite map also there four server kh0, kh1, kh2 and kh3.Each tile in satellite map is in 256x256 jpg format.

For more details read this link [3]

PNG (Portable Network Graphics)

It is a bitmap image format that employs lossless data compression .JPEG is a poor choice for storing images that require further editing as it suffers from generation loss, whereas lossless formats do not. PNG is a better choice than JPEG for storing images that contain text, line art, or other images with sharp transitions that do not transform well into the frequency domain. To know more read [4]

Geoserver

It is open source and it allows users to view and edit geographic data. GeoServer is a fully functional WFS-T and WMS server that follows the OGC specifications. [5]

Styled Layer Descriptors

Style Language Descriptor (SLD) which is an open standard used to define the 'styling' of a map, that is how to make it look.Read more on how include SLD in geoserver WMS in this link [6]

Blog

Well by the time explaining the project in hand we cleared some bugs in the look and feel of the web page. The materials in hand that motivate us to continue the project are the following

1)http://Maps.google.com

The above website has the capability of finding the shortest path from one location to the other. And we assumed that there will be some API functions to work with.

2)http://transport.egovernments.org/

We need to find the shortest path from one point in map to another point. That has been done very well in the above website. They have designed their own map and added over google map over that they have enabled the shortest path finding algorithm. We have contacted the site developer.

The following mail has been send to him

�Hello Mr.Pandian,
 Great work you have done in transport.egovernment.org . Actually your project gave me a motivation long back when I though that
I couldn't continue my project.I wanted to know how to generate own map.I am doing a project to track the mobile phones it map.
Till now as a team we have displayed the Google maps but we don't know how to design a Kerala map and put over the Google map
 as you did.Which software or tool can be used to design the custom maps.please, guide me .waiting for your reply”

Reply from Mr.Pandian

�Thanks for your appreciation of the work.
Currently, i'm not working with egovernments. It would be appropriate for you to contact egovernments foundation in this regard.
i cc'd the mail to manu(is the pm). you probably could contact him for further help or assistance. 
regards,
pandian”

So we contacted Mr.Manu

Hello Sir,

I am a student of IIITMK.Doing final year project in google maps.I want to know which software or map server you used to
develop the map tiles.the project that I am doing is "Emergency care". I need to track the mobile users in the map and help 
them.Airtel has accepted our proposal.I need to design a local map and lay it over google maps as you did in 
transport.egovernments.org. Mr.Pandian asked me to contact you for any clarifications  regarding your project. Please help me
by saying which software will be good enough to build map with routes . Also I need to learn about finding the shortest route
or driving directions. This is a health service project.Helping the victims who meet with accident.I have to propose this 
project to Kerala government only if I could get cleared with the doubts mentioned above.

Thanking you,
 

NO REPLY from Manu

We started analyzing the transport website.To understand the code behind it we downloaded the website. Surprisingly, we found that they have used PHP (we have no Idea about PHP). We started thinking about incorporating PHP codes into the project. We have downloaded some books �PHP with Google maps”, “PHP with postgres SQL”. Since we were very hesitant to include PHP codes to our web application, just kept that in the project folder for later usage. We assumed the following:

1) There will be some API functions to calculate the shortest path

2) We can download map from any websites and use rather than developing one

3) A local server for map (like map server or Geoserver ) is not required

We have divided the work in to two( as per the plan)

a) To download and overlay the map over Google map

b) To find materials regarding shortest path

A lot of research work has to be done while finding the materials for shortest path. The following websites gave us a new thought

1.How to Add shapefile/mapinfo polygon data into Google maps (IE, Firefox, and Safari only so far)

http://prod.library.utoronto.ca:8090/maplib/googlepolygons.html

2.Finding and Creating Google Maps Overlays

http://blog.outer-court.com/archive/2006-09-25-n83.html

3.Adding Tile layers to google map

http://mapki.com/index.php?title=Add_Your_Own_Custom_Map

4.Rendering roads on Google Maps using Java and PostGIS

http://cse-mjmcl.cse.bris.ac.uk/blog/2006/05/27/1148737394599.html


The third link gave us a different perspective on Google maps. Something called Tile layers strikes a brand new thought about Google map ( We hoped that it wont be difficult to create tiles)We started researching about Tiles. We found a weblog http://www.programmableweb.com/howto has all the website related to customizing Google maps(called mashups).

To have tiles over Google maps we should have maps in the form of shape files and to maintain that we need a server like Mapserver or Geoserver.Actually in one of our previous documentation we have mentioned that to have Google maps we need not have Mapserver or Geoserver or any of that kind. Its true, but to display custom tiles we need a server. Now we found that a great work has to be done, like downloading a server and configuring it.

1.We have decided to use map server to render the tile of kazhakottam shape file.The sample website that motivated us to start with map server+Google map is the following

http://ecoservices.eidesis.org/

2.We found a web link where Mr.David just show the map that has been developed using Mapserver + Google maps�no code is available

http://www.dasnet.org/node/101

3.The following link explains about the non free features of Google maps

http://crschmidt.net/blog/categories/software/mapserver/

4.Setting up mapserver + WMS + openlayers (instead of Google maps)

http://blog.davebouwman.net/PermaLink,guid,9a6a0940-f0f4-4f6b-bfb4-8e53ec855227.aspx

We already have Mapserver downloaded but just a bit hesitation to begin the, because we have write some PHP codes. Nobody in our team have bit knowledge about PHP. We thought we should find similar server. We have to research on many similar map servers to make a comparative study and to choose the best one. We got KazhaKottam shape file from Mr.RadhaKrishnan. First we tried converting that shape file to SQL queries by a command line utility in Postgre SQL.

 shp2pgsql D:\roads.shp  roads>roads.sql  

then we executed SQL command to insert into the DB

 psql �d postgisdb �f roads.sql

We had done so many research on how google map has implemented the shortest path algorithm (routing ) .Google map api documentation mentions routing as follows

Routing and Local Search The Google Maps API does not include routing services at this time. However, there are a number of free routing APIs on the web. If you would like to add local search capabilities to your site, you can use the Google AJAX Search API to embed a local search module into your site. Since google map does not provide free routing services , We found out an open source routing build-your-own-routing-solution which describes shortest path algorithm using djikstra shortest path algorithm .These are the steps we have followed

1. As we had PostgreSQL 8.1 with PostGIS plugin installed so we skip the first step

2. Download the pgdijkstra package from cartoweb

3. Extract pgdijkstra.dll into C:\Program Files\PostgreSQL\8.1\lib\ pgdijkstra\

4. Lets create a new database named �postgis” to hold the routing data

 createdb -U postgre postgis

5.Time to ensure plpgsql is initialised on our new db

 createlang plpgsql -U postgre postgis

6. Last thing we need to do is insert the new routing functions

 psql -U postgre postgis -f �C:\Program Files\PostgreSQL\pgdijkstra\dijkstra.sql”
 psql -U postgre postgis -f �C:\Program Files\PostgreSQL\pgdijkstra\dijkstra_postgis.sql”

7. Convert KazhaKottam shapefile data into a postgis table using the command

 shp2pgsql C:\roads.shp  roads>roads.sql  
 then we executed  SQL command to  insert into the DB
 psql �d postgisdb �f roads.sql

8. Almost all road datasets wont have the necessary target_id and source_id for the graph creation. Luckily there is a assign_vertex_id function to automatically generate each id from the start and end node of the line string. Add 3 new columns to your roads table source_id(integer) target_id(integer) if you dont already have similar from/to node columns that you can rename. If you dont, use the following function to generate source/target id�s based on the distance given.

 SELECT assign_vertex_id(�graph2′, 0.00003);

9. Now we are ready to begin generating the graph edges and vertice

 SELECT create_graph_tables(�roads’, ‘int4′);

This procedure will create 2 new tables, roads_vertices and roads_edges.Next step is to find the cost of the edges by the distances. Since we had some problem in finding the cost of the edges,we stepped into the next module of how to overlay shapefile to google map.

We read in one of the google map api forums that the performance Mapserver+Google map and Geoserver+Google map are almost same. But we choose Geoserver since it has a good documentation in the following link Getting Started with Google Maps and GeoServer WMS .As per the above documentation we downloaded and configured Geoserver 1.5RC.Since we need to try our experiment of overlaying road shapefile, we registered our IP 192.168.0.125 (infosec09.iiitmk.ac.in) with the google map for getting a new key.

We configured the Datastore ,FeatureType in the Geoserver WMS Capabilities to render the shapefile to google map as per the following link http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Shapefile.

We tried many times till end of the day but we couldn�t display Kazhakuttam shapefile.We thought it might some problem with projection EPSG 41001 zoom level as projection WGS84 ( EPSG 4326) was the default projection used for datum Google maps(for zoom level 0-6) .We send mail to the author of the article Getting Started with Google Maps and GeoServer WMS Mr.Chris Holmes about the problem.

Then we found in one of the discussion that it is better to use Gerserver 1.3 stable version than trying beta version such as Gerserver 1.5RC.We reinstalled Geoserver 1.3 stable version and it worked fine and we were successful in overlaying Kazhakuttam shape file on google map.

We able to include the styles to the Kazhakootam shapefile as per the instructions given in the link http://docs.codehaus.org/display/GEOSDOC/SLD+Intro+Tutorial


PROJECT STATUS:

We just took some more days to finish those two modules but everything went as per the plan. We got some help from externals since the project requires such skills from people who have experience in developing projects similar to ours. That is one of the reasons for the delay in plan.

Project Modules:

1.To overlay custom map over Google map

2.Tracking the mobile user on the map

3.Modules to find the shortest path

4.Setting up a system for receiving call or message

5.Modules for processing signals to get the required information


We tried for the 2nd module �Tracking the mobile user on the map” (modules mentioned in note), due to some inabilities of proceeding with that, we planned to do the �Shortest path”�module (which is the 3rd module as per the plan) for the rest of the days and then continue with the 3rd module.

Related Links:

References

 Google ApI official documentation
 http://www.google.com/apis/maps/documentation  
 
 Hacking Maps with the Google Maps API
 http://www.xml.com/pub/a/2005/08/10/google-maps.html?page=1
 
 Google map API Tutorial
 http://www.econym.demon.co.uk/googlemaps/
 
 Getting Started with Google Maps and GeoServer WMS
 http://docs.codehaus.org/display/GEOSDOC/Google+Maps
 
 Introduction Tutorial to Styled Layer Descriptors
 http://docs.codehaus.org/display/GEOSDOC/SLD+Intro+Tutorial
 
 Build your own routing solution
 http://chris.narx.net/2005/12/14/build-your-own-routing-solution/
 
 How Google map works
 http://www.codeproject.com/useritems/googlemap.asp
 Fitting the map to the data
 http://www.econym.demon.co.uk/googlemaps/basic14.htm
 
 Shortest Path A*
 http://pgrouting.postlbs.org/wiki/AStar
 PostGIS DataStore
 http://docs.codehaus.org/display/GEOSDOC/PostGIS+DataStore

Related Links:

  • Want to become an Engineer? Engineeringdegrees101 is your online guide to a Engineering Career. Checkout our website and explore the information we have available!


Radialash
Pos Software
outdoor fountains
Web 2.0 Design Android App Design Madera dentist
Cassette Player
Supply chain management online discount discount
How to Do Your Own Alterations at Home
How to Install Your Own Solar Panels
How to Increase Website Traffic
How to Make Costumes at Home Website Design Cleveland

Accelerated Bachelors Degree Programs

[dai ly thue] [đại lý thuế]

[quang cao truc tuyen]

[seo] [rao vat] [seo services] [thiet ke web] [quang ba web] [marketing online] [Funny SMS] [du hoc] [tu van du hoc] [cong ty du hoc] [du hoc uc] [du hoc my] [du hoc singapore]

[noithatdailoan]

[bao ve]

[Ph�n m�m nh�n sự], [Qu�n lý Nh�n sự], [Ph�n m�m qu�n lý nh�n sự�ti�n lương] [tham tu] [cong ty tham tu]

Personal tools
<
May 2012
>
SMTWTFS
12345
6789101112
13141516171819
20212223242526
2728293031
Events Upcoming
More »