I would go for the APIs. I am gonna give it a shot. If it doesnt work then I can use the XML file instead to read the coordinates. Thanks Man.
For now I am gonna mark it as correct.
Another question if you could help me with.
https://community.jboss.org/message/790142
Thanks.