Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I was told to implement a web service which, given 2 inputs (street name, cross street name) the output is the crossing geographical coordinates.

What is the best way i should go? Is there a standard for Geographical Web Services that queries a database? Are there same similar examples? (I haven't found anyone)

We use PHP, and a Postgres database with Postgis.

I have developed a solution whith nusoap and xml but I really don't know if this is a good solution.

Thanks!

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

there is a PostGIS RESTful Web Service Framework here for google-map but you can use its result. you can check out whether it works for you or not...

the result is sth like this :

{"total_rows":"20","rows":[{"row":{"gid":"1","name":"Main Library","address":"310 N. Tryon St","city":"Charlotte","geojson":{"type":"Point","coordinates":[-80.840724581696904,35.228864793191491]}}},{"row":{"gid":"3","name":"Beatties Ford Road Branch","address":"2412 Beatties Ford Rd","city":"Charlotte","geojson":{"type":"Point","coordinates":[-80.853981238642987,35.267446222268148]}}},{"row":{"gid":"5","name":"Cornelius Branch","address":"21216 Catawba Av","city":"Cornelius","geojson":{"type":"Point","coordinates":[-80.862416068045874,35.482669302763846]}}}]}

rest

i hope it helps you....

share|improve this answer
    
Thanks, I'm looking at it! It's a good example! –  gonzalomelov May 30 '12 at 15:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.