On Thu, 4 Nov 2010 14:33:11 +0900 [박상호] <gouach...@gmail.com> said:

> nowadays, I'm trying to implement route functionality to elm_map.
> route information is provided by osm (
> http://wiki.openstreetmap.org/wiki/YOURS#Routing_API).
> 
> example static url is : "
> http://www.yournavigation.org/api/1.0/gosmore.php?format=kml&flat=52.215676&flon=5.963946&tlat=52.2573&tlon=6.1799&v=motorcar&fast=1&layer=mapnik
> "
> 
> API prototype is ...
> 
> EAPI Elm_Map_Route * elm_map_route_add(const Evas_Object *obj, int type,
> double flon, double flat, double tlon, double tlat);
>   type : the type of transport (motocar, bicycle, foot, etc).
>   flon: longitude of the starting location.
>   flat : latitude of the starting location.
>   tlon: longitude of the end location.
>   tlat : latitude of the end location.
> 
> EAPI void elm_map_route_remove(Elm_Map_Route *route);
> EAPI void elm_map_route_bring_in(Elm_Map_Route *route);
> EAPI void elm_map_route_show(Elm_Map_Route *route);
> 
> how do you think these APIs?
> is it possible to add route api to elm_map?

i think the idea of a routing api is fine - just small things - make it
elm_map_route_del not elm_map_route_remove. :) (add and del go in pairs) :)
also type should be an enum 

some other things ... how do we convert a long/lat into a string - ie search
for "231 baker st. seven hills, nsw, australia" - and then get lon/lat.. but
also be able to take the lon/lat and get back a named string address/location?
so we need to maybe virtualise "locations" as opaque objects (they can be a
lon/lat or they can be an explicit address or location like "seoul station"
etc.)?

and then a route likely has several "waypoints" or turns etc. - so you will
probably need a way to list the points in it, query information at each point
(where it says to take the 3rd exit then go under the tunnel etc.), as well as
show also a hide, and possibly even get the entire point list for the poly-line
that is the route (not just waypoints/turns).

i'm just expanding the idea of route to be that of a full navigation system you
find in cars etc. but maybe open streetmaps and even google maps will only
provide a subset of that information for now.

 ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a 
> Billion" shares his insights and actions to help propel your 
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to