Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Where can i find a free service for reverse geocoding a coordinate in israel to get a street address? the google api web service doesnt give me a street address in israely coordinates...
Thanks.
Checkout
Find nearest Intersection and Find nearby Streets from GeoNames.org
For example:
http://ws.geonames.org/findNearestIntersectionOSM?lat=32.081&lng=34.781
returns:
<geonames>
<intersection>
<street1>אבן גבירול</street1>
<highway1>tertiary</highway1>
<street2>בלוך</street2>
<highway2>tertiary</highway2>
<lat>32.0813665</lat>
<lng>34.7813189</lng>
<distance>0.05</distance>
</intersection>
</geonames>
I am also searching.. found no free service, but Waze have a nice one for pay.
This is example I got from them:
http://rgc.waze.co.il/GeoCoding/decode?token=123&x=34.8735080868463&y=32.05829587571&r=0.001&max=3
Where:
token = is the token assigned to you (currently use 123)
x = Lon.
y = Lat.
r = distance to search the address (angle - 1 deg = 111.11 KM)
max = the number of max results
<result>
<address id="52778" type="1" street="גני תקווה" house="22">
</address>
<address id="52776" type="1" street="קישון" house="22">
</address>
<address id="52775" type="1" street="קישון" house="18">
</address>
</result>
Related
This question already has answers here:
XML-XSLT : How to compare two dates which are in String
(2 answers)
Closed 3 years ago.
I know this question might get repeated and i am still learning (XML-XSLT : How to compare two dates which are in String)
EX:<oldDate>2019-09-25T10:49:52.755Z</oldDate>
<currentDate>2019-07-25T10:49:52.755Z</currentDate>
can some one help me
sample code:
XML-XSLT : How to compare two dates which are in String
EXPECTED output:
<?xml version="1.0" encoding="utf-8"?>
<xml>
<output>OK</output>
</xml>
or
<?xml version="1.0" encoding="utf-8"?>
<xml>
<output>Not Ok</output>
</xml>
Please someone help me to compare this kind of date format
You can simply use below code after typecast the string as date xs:dateTime():
<xsl:value-of select="if (xs:dateTime(/root/oldDate) > xs:dateTime(/root/currentDate)) then ('OK') else ('Not OK')"/>
see this link: https://xsltfiddle.liberty-development.net/bnnZX6
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I need help with a little problem in XSLT
I have a XML :
a.xsm
<?xml version="1.0" encoding="UTF-8"?>
<ExtData>
<table bName="B SERs" id="BSER">
<Col bName="Bus" id="BUS">
<CoreCol coreEName="SER" coreHref="../_a2.xml" corebName="Bus" coreId="BUS"/>
</Col>
<Col bName="Bus" id="BUS">
<CoreCol coreEName="MOR" coreHref="../_a5.xml" corebName="Busw" coreId="BUSW"/>
</Col>
<Col bName="Ser" id="NAME">
<CoreCol coreEName="SER" coreHref="../_a2.xml" corebName="Ser" coreId="NAME"/>
</Col>
<Col bName="ID" id="ID">
<CoreCol coreEName="SER" coreHref="../_a2.xml" corebName="SerId" coreId="UCMDB_ID"/>
</Col>
</table>
</ExtData>
I need write a function that by coreName return coreHref
It's mean ::
my_variable = same_func("SER") ==>> variable will be "../_a2.xml"
thank for help!
Here is XPath expression to select coreHref:
//Col/CoreCol[#coreEName='YorName']/data(#coreHref)
Define a key
<xsl:key name="by-name" match="Col/CoreCol" use="#coreEName"/>
then use it with e.g. key('by-name', 'SER')/#coreHref.
But note that inside of xsl:function you don't have a context node to apply the key function with two arguments, thus if you want to use the approach inside of an xsl:function make sure you have
<xsl:variable name="main-root" select="/"/>
as a global variable and then use key('by-name', 'SER', $main-root)/#coreHref.
I would like to limit the x-axis of my chart that is created by cfchart. I see the attribute scaleFrom and scaleTo that limit the y-axis, but I see nothing that limits the x-axis.
Also, I saw a similar question here:
ColdFusion Chart x-axis label limits
but neither of the answers were appropriate. ScaleMin and ScaleMax do not exists as far as I can tell and the other answer is more complicated than what I'd like to do.
The scaleMin and scaleMax attributes Saul mentioned are only available when using a custom style. Note, using type "scale" means your xAxis values must be numeric. If you want to use strings, you will probably need to use Ben's approach instead.
Here is a quick example that creates a chart with 24 points on the xAxis. Even though the query only contains the first six (6) points.
<!--- bare bones style --->
<cfsavecontent variable="style">
<?xml version="1.0" encoding="UTF-8"?>
<frameChart is3D="false" isInterpolated="true">
<frame xDepth="3" yDepth="1" />
<xAxis type="Scale" scaleMin="0" scaleMax="24" labelCount="25" isBucketed="false" />
</frameChart>
</cfsavecontent>
<!--- sample query --->
<cfset qry = queryNew("")>
<cfset queryAddColumn(qry, "xValue", listToArray("1,2,3,4,5,6"))>
<cfset queryAddColumn(qry, "yValue", listToArray("30,15,22,14,45,5"))>
<!--- chart code --->
<cfchart format="jpg" style="#style#" width="600">
<cfchartseries type="line"
markerstyle="circle"
query="qry"
itemColumn="xValue"
valueColumn="yValue" />
</cfchart>
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have lists with " · " (dot) in the html and output. I need to replace that with an actual <ul><li>...</li></ul>
This sounds tough but does anyone have any ideas?
The html is:
· List item 1
· List item 2
(wrapped in paragraph tags)
And I need it to be
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
</ul>
Delete the dot from the html and give the list a css of ul { list-style-type: circle; }
For more values for the css attribute, check http://www.w3.org/wiki/CSS/Properties/list-style-type
Is there a way to look up the various editions of a book based on its ISBN using the Amazon Product Advertising API?
And, more generally, what are the various choices for looking up edition metadata on a book? Only one I know of for sure is the xISBN api from worldcat
On my site we have a "more editions" button for when people search for books.. so I'd be making a lot of queries (and cacheing them).
You could use OCLC's xISBN API - give it an ISBN and it gives you a set of all ISBNs that are the same "work" - other editions, translations, etc. It will give you something like this:
<?xml version="1.0" encoding="UTF-8"?>
<rsp xmlns="http://worldcat.org/xid/isbn/" stat="ok">
<isbn form="BA" year="2004" lang="eng" ed="2nd ed.">0596002815</isbn>
<isbn form="BA DA" year="1999" lang="eng">1565928938</isbn>
<isbn form="BA" year="1999" lang="eng" ed="1st ed.">1565924649</isbn>
</rsp>
Unfortunately, it is not free. Here is the pricing.
Take a look at https://sourceforge.net/projects/isbntools/files/latest/download. The command isbn editions ISBN will give you what you want...
If you are a developer you have https://pypi.python.org/pypi/isbntools.
This question is old, but for the sake of completeness, I'll add that Amazon Product Advertising API does offer a way to look up other editions (and ISBN numbers) of a book, but this involves two ItemLookup queries:
a first query to get the ASIN of the parent item, that Amazon calls Authority Non Buyable; this is a virtual product that has no product page, and is just a container for children products.
a second query to list the child items of this parent.
Both queries must include the following parameters:
ResponseGroup=RelatedItems,ItemAttributes
RelationshipType=AuthorityTitle
The first query with an ISBN number would look like:
...&IdType=ISBN&ItemId=9780345803481
<RelatedItems>
<Relationship>Parents</Relationship>
<RelationshipType>AuthorityTitle</RelationshipType>
<RelatedItemCount>1</RelatedItemCount>
<RelatedItemPageCount>1</RelatedItemPageCount>
<RelatedItemPage>1</RelatedItemPage>
<RelatedItem>
<Item>
<ASIN>B0058NLWEC</ASIN>
...
</Item>
</RelatedItem>
</RelatedItems>
The second query is performed with the parent ASIN returned by the first query, B0058NLWEC:
...&IdType=ASIN&ItemId=B0058NLWEC
<RelatedItems>
<Relationship>Children</Relationship>
<RelationshipType>AuthorityTitle</RelationshipType>
<RelatedItemCount>42</RelatedItemCount>
<RelatedItemPageCount>5</RelatedItemPageCount>
<RelatedItemPage>1</RelatedItemPage>
<RelatedItem>
<Item>
<ASIN>1445026570</ASIN>
<ItemAttributes>
<EAN>9781445026572</EAN>
<ISBN>1445026570</ISBN>
...
</ItemAttributes>
...
</Item>
</RelatedItem>
<RelatedItem>
<Item>
<ASIN>1471305015</ASIN>
<ItemAttributes>
<EAN>9781471305016</EAN>
<ISBN>1471305015</ISBN>
...
</ItemAttributes>
...
</Item>
</RelatedItem>
...
</RelatedItems>
This lists all editions of this book as known by Amazon: hardcover, paperback, Kindle, audiobook, ...
The ISBN DB provides a remote access API that will return various meta data formatted as XML. From browsing entries on their website, some of the ISBN entries include edition information as well.
Check out this API sample response:
<?xml version="1.0" encoding="UTF-8"?>
<ISBNdb server_time="2005-07-29T03:02:22">
<BookList total_results="1">
<BookData book_id="paul_laurence_dunbar" isbn="0766013502">
<Title>Paul Laurence Dunbar</Title>
<TitleLong>Paul Laurence Dunbar: portrait of a poet</TitleLong>
<AuthorsText>Catherine Reef</AuthorsText>
<PublisherText publisher_id="enslow_publishers">
Berkeley Heights, NJ: Enslow Publishers, c2000.
</PublisherText>
<Summary>
A biography of the poet who faced racism and devoted himself
to depicting the black experience in America.
</Summary>
<Notes>
"Works by Paul Laurence Dunbar": p. 113-114.
Includes bibliographical references (p. 124) and index.
</Notes>
<UrlsText></UrlsText>
<AwardsText></AwardsText>
<Prices>
<Price store_id="alibris" is_in_stock="1" is_new="0"
check_time="2005-07-29T01:18:18" price="14.92"/>
<Price store_id="amazon" is_in_stock="1" is_new="1"
check_time="2005-07-29T01:18:20" price="26.60" />
</Prices>
</BookData>
</BookList>
</ISBNdb>
Also, here is specific documentation on attributes in 'books collection' response XML.
1) search with the title being same
2) Iterate over the response list (which should be of 5-10 results for most books, books with generic titles like say "Python Programming" will result in lot of results hence may not work out)
3) See difference in ISBN number + Published Date
I don't recall there being a direct api for the same.